1 | static AI_Rule ai_parseRule(S s) { |
2 | L<S> tok = tok_combineCurlyBraces(javaTok(s)); |
3 | new Matches m; |
4 | if (jmatch("* => *", tok, m)) |
5 | ret ai_rule( |
6 | ai_parseTriple(m.get(0)), |
7 | ai_parseTriple(m.get(1))); |
8 | if (jmatch("* & * => *", tok, m)) |
9 | ret ai_rule( |
10 | ai_parseTriple(m.get(0)), |
11 | ai_parseTriple(m.get(1)), |
12 | ai_parseTriple(m.get(2))); |
13 | null; |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012137 |
Snippet name: | ai_parseRule |
Eternal ID of this version: | #1012137/5 |
Text MD5: | a66a468f2c6459dad33cc2600305234b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-21 14:05:44 |
Source code size: | 387 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 452 / 481 |
Version history: | 4 change(s) |
Referenced in: | [show references] |