1 | static void stanfordPrintTree(Tree tree) {
|
2 | stanfordPrintTree("", tree);
|
3 | } |
4 | |
5 | svoid stanfordPrintTree(S indent, Tree tree) {
|
6 | print(indent + tree.label().value()); |
7 | for (Tree child : tree.getChildrenAsList()) |
8 | stanfordPrintTree(indent + " ", child); |
9 | } |
Began life as a copy of #1008487
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008492 |
| Snippet name: | stanfordPrintTree |
| Eternal ID of this version: | #1008492/2 |
| Text MD5: | 2b4686434d3054205f5d56502b857f51 |
| Author: | stefan |
| Category: | javax / a.i. parsing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-05-19 14:07:41 |
| Source code size: | 264 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 737 / 763 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |