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

9
LINES

< > BotCompany Repo | #1017491 // ai_scanParseTreeForWord

JavaX fragment (include)

static PTElement ai_scanParseTreeForWord(PTElement e, S word) {
  if (e == null) null;
  if (eqic(e.text(), word)) ret e;
  for (PTElement child : unnull(e.children)) {
    PTElement x = ai_scanParseTreeForWord(child, word);
    if (x != null) ret x;
  }
  null;
}

Author comment

Began life as a copy of #1017433

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: #1017491
Snippet name: ai_scanParseTreeForWord
Eternal ID of this version: #1017491/2
Text MD5: 8458d1092c70a77ca021ea201822b5fc
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-23 22:49:51
Source code size: 272 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 316 / 344
Version history: 1 change(s)
Referenced in: [show references]