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

9
LINES

< > BotCompany Repo | #1017491 // ai_scanParseTreeForWord

JavaX fragment (include)

1  
static PTElement ai_scanParseTreeForWord(PTElement e, S word) {
2  
  if (e == null) null;
3  
  if (eqic(e.text(), word)) ret e;
4  
  for (PTElement child : unnull(e.children)) {
5  
    PTElement x = ai_scanParseTreeForWord(child, word);
6  
    if (x != null) ret x;
7  
  }
8  
  null;
9  
}

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