1 | static void ai_printParseTree(PTElement e) { |
2 | ai_printParseTree(e, ""); |
3 | } |
4 | |
5 | static void ai_printParseTree(PTElement e, S indent) { |
6 | if (e == null) ret with print("No parse tree"); |
7 | print(indent + e); |
8 | indent += " "; |
9 | for (PTElement child : unnull(e.children)) |
10 | ai_printParseTree(child, indent); |
11 | } |
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: | #1017456 |
Snippet name: | ai_printParseTree |
Eternal ID of this version: | #1017456/2 |
Text MD5: | fb7d0393e17fae9d1e0bc928aa207a2a |
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-22 13:49:02 |
Source code size: | 316 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 402 / 431 |
Version history: | 1 change(s) |
Referenced in: | [show references] |