1 | sS ai_parseTree_simplifiedText(PTElement e) {
|
2 | e = ai_parseTree_descendToComposite(e); |
3 | if (e instanceof ChoosePart) {
|
4 | ai_Reconstructed r = e/ChoosePart.reconstruction; |
5 | WeightedProduction prod = r.production; |
6 | //print("Hint: " + prod.simplificationHint + " in prod: " + sfu(prod));
|
7 | if (eq(prod.simplificationHint, "L")) |
8 | ret r.a.text(); |
9 | else if (eq(prod.simplificationHint, "R")) |
10 | r.b.text(); |
11 | ret e/ChoosePart.word.text(); |
12 | } |
13 | null; |
14 | } |
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: | #1017407 |
| Snippet name: | ai_parseTree_simplifiedText |
| Eternal ID of this version: | #1017407/6 |
| Text MD5: | 7b1cfafd0dcaae588e11ce1eaf80ad13 |
| 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-19 20:52:58 |
| Source code size: | 484 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 674 / 707 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |