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

11
LINES

< > BotCompany Repo | #1017406 // ai_parseTree_descendToComposite

JavaX fragment (include)

static ChoosePart ai_parseTree_descendToComposite(PTElement e) {
  /*while (e instanceof ChooseCategory
    || e instanceof HaveCategory
      && (e/HaveCategory.reconstruction == null || e/HaveCategory.reconstruction.b == null)) {*/
  while (e != null && !e instanceof ChoosePart) {
    PTElement e2 = e;
    e = first(e.children); // Choose most likely reconstruction
    //print("Went from " + className(e2) + "(" + e + ") to " + className(e) + " (" + n2(e2.children, "child", "children") + ")");
  }
  ret (ChoosePart) e;
}

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: #1017406
Snippet name: ai_parseTree_descendToComposite
Eternal ID of this version: #1017406/9
Text MD5: 8ea2ac410160e642675605a5d0b302f9
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:29:59
Source code size: 539 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 450 / 472
Version history: 8 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1017493 - ai_parseTree_descendToComposite_opt