sS nlLogic_render(IfThen rule) { if (rule == null) null; ret nlLogic_render(rule.in) + " => " + nlLogic_render(rule.out); } sS nlLogic_render(Exp e) { if (e cast Func) ret e.name + "(" + nlLogic_render(e.arg) + ")"; if (e cast Sentence) ret join(e.tok); if (e cast And) ret nlLogic_render(e.a) + " && " + nlLogic_render(e.b); ret "TODO: " + className(e); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017553 |
Snippet name: | nlLogic_render |
Eternal ID of this version: | #1017553/4 |
Text MD5: | 5f2ceaaaba6bc40ca4934370d73188d2 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-27 12:16:25 |
Source code size: | 379 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 353 / 389 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1017554 - nlLogic_AbstractChecker - unused |