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

8
LINES

< > BotCompany Repo | #1017892 // ai_parseTreeGrouping - get default deep grouping

JavaX fragment (include)

static S ai_parseTreeGrouping(PTElement e) {
  if (e == null) null;
  ChoosePart comp = ai_parseTree_descendToComposite(e);
  if (comp != null)
    ret curlyOpt(ai_parseTreeGrouping(first(comp.children))) + " "
      + curlyOpt(ai_parseTreeGrouping(second(comp.children)));
  ret e.text();
}

Author comment

Began life as a copy of #1017431

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017892
Snippet name: ai_parseTreeGrouping - get default deep grouping
Eternal ID of this version: #1017892/3
Text MD5: 7de986b4552f4bca589f6d1b130074f6
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-19 12:33:06
Source code size: 298 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 340 / 351
Version history: 2 change(s)
Referenced in: [show references]