Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1017813 // nlLogic_loadMechScript

JavaX fragment (include)

1  
static L<IfThen> nlLogic_loadMechScript(S listName) {
2  
  new L<IfThen> out;
3  
  new Matches m;
4  
  S scriptID = "";
5  
  for (S s : splitAtEmptyLines(mL_raw(listName))) pcall {
6  
    if "this is script *"
7  
      continue with scriptID = $1 + "-";
8  
    IfThen rule = nlLogic_parseRule(s);
9  
    if (rule != null)
10  
      out.add(rule);
11  
    else
12  
      print("Couldn't parse: " + s);
13  
  }
14  
  nlLogic_setScriptID(out, scriptID);
15  
  ret out;
16  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017813
Snippet name: nlLogic_loadMechScript
Eternal ID of this version: #1017813/2
Text MD5: 2b51d6f48c70f6b74c5f85e5d024822f
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-14 21:13:45
Source code size: 434 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 321 / 326
Version history: 1 change(s)
Referenced in: [show references]