static PTElement ai_parseTree_simplifyNode(PTElement e) { if (e == null) null; e = ai_parseTree_descendToComposite(e); if (e == null) null; if (e instanceof ChoosePart) { ai_Reconstructed r = e/ChoosePart.reconstruction; WeightedProduction prod = r.production; S hint = prod.simplificationHint; if (eq(hint, "L")) ret first(e.children); if (eq(hint, "R")) ret second(e.children); } ret e; }
Began life as a copy of #1017408
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: | #1017742 |
| Snippet name: | ai_parseTree_simplifyNode |
| Eternal ID of this version: | #1017742/4 |
| Text MD5: | cdad1256b2b33906cba9d792257a8ebc |
| 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-07 20:40:30 |
| Source code size: | 434 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 574 / 607 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |