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

11
LINES

< > BotCompany Repo | #1017456 // ai_printParseTree

JavaX fragment (include)

static void ai_printParseTree(PTElement e) {
  ai_printParseTree(e, "");
}

static void ai_printParseTree(PTElement e, S indent) {
  if (e == null) ret with print("No parse tree");
  print(indent + e);
  indent += "  ";
  for (PTElement child : unnull(e.children))
    ai_printParseTree(child, indent);
}

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: 401 / 430
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1017541 - ai_renderParseTree
#1023868 - ai_printParseTreeWithLevels