static L<Pair<PTElement>> ai_matchParseTrees(PTElement a, PTElement b) { new L<Pair<PTElement>> out; ai_matchParseTrees_collect(a, b, out); ret out; } svoid ai_matchParseTrees_collect(PTElement a, PTElement b, L<Pair<PTElement>> out) { PTElement a2 = ai_parseTree_descendToComposite(a); PTElement b2 = ai_parseTree_descendToComposite(b); PTElement aa = or(a2, a), bb = or(b2, b); if (a2 != null && b2 != null) { ai_matchParseTrees_collect(first(a2.children), first(b2.children), out); ai_matchParseTrees_collect(second(a2.children), second(b2.children), out); } else addPair(out, aa, bb); }
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: | #1017424 |
| Snippet name: | ai_matchParseTrees |
| Eternal ID of this version: | #1017424/3 |
| Text MD5: | d3db34d45d30e71f3a5cd5d2579c1bc8 |
| 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-20 14:51:19 |
| Source code size: | 642 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 619 / 660 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |