static void ai_printParseTreeWithLevels(PTElement e) { ai_printParseTreeWithLevels(e, ""); } static void ai_printParseTreeWithLevels(PTElement e, S indent) { if (e == null) ret with print("No parse tree"); print(indent + "[" + (l(indent)/2+1) + "] " + e); indent += " "; for (PTElement child : unnull(e.children)) ai_printParseTreeWithLevels(child, indent); }
Began life as a copy of #1017456
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023868 |
Snippet name: | ai_printParseTreeWithLevels |
Eternal ID of this version: | #1023868/1 |
Text MD5: | 6ff2046efa3659f42f510a025481374e |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-10 20:14:28 |
Source code size: | 387 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 196 / 224 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |