static L<IfThen> nlLogic_loadMechScript(S listName) { new L<IfThen> out; new Matches m; S scriptID = ""; for (S s : splitAtEmptyLines(mL_raw(listName))) pcall { if "this is script *" continue with scriptID = $1 + "-"; IfThen rule = nlLogic_parseRule(s); if (rule != null) out.add(rule); else print("Couldn't parse: " + s); } nlLogic_setScriptID(out, scriptID); ret out; }
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: | 398 / 405 |
Version history: | 1 change(s) |
Referenced in: | [show references] |