1 | static Exp nlLogic_applyMatches(Exp e, SS m) {
|
2 | if (e == null) null; |
3 | if (e cast And) |
4 | ret And(nlLogic_applyMatches(e.a, m), nlLogic_applyMatches(e.b, m)); |
5 | if (e cast ExpNot) |
6 | ret ExpNot(nlLogic_applyMatches(e.a, m)); |
7 | if (e cast Func) |
8 | ret Func(e.name, nlLogic_applyMatches(e.arg, m)); |
9 | |
10 | if (e cast Sentence) |
11 | ret Sentence(javaTok(ai_standardReplaceVars(e.text(), m))); |
12 | if (e cast Sentence2) |
13 | ret Sentence2(ai_standardReplaceVars(e.text(), m)); |
14 | |
15 | ret e; |
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: | #1018079 |
| Snippet name: | nlLogic_applyMatches |
| Eternal ID of this version: | #1018079/1 |
| Text MD5: | 95de3f2b5808184b2dc92522ed4ab9c7 |
| 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-29 15:26:23 |
| Source code size: | 503 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 635 / 647 |
| Referenced in: | [show references] |