Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1008492 // stanfordPrintTree

JavaX fragment (include)

static void stanfordPrintTree(Tree tree) {
  stanfordPrintTree("", tree);
}

svoid stanfordPrintTree(S indent, Tree tree) {
  print(indent + tree.label().value());
  for (Tree child : tree.getChildrenAsList())
    stanfordPrintTree(indent + "  ", child);
}

Author comment

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: 449 / 466
Version history: 1 change(s)
Referenced in: [show references]