1 | static L<PTElement> ai_scanParseTreeForWord_all_tighter(PTElement e, S word) { |
2 | new L<PTElement> out; |
3 | ai_scanParseTreeForWord_all_tighter_scan(e, word, out); |
4 | ret out; |
5 | } |
6 | |
7 | svoid ai_scanParseTreeForWord_all_tighter_scan(PTElement e, S word, L<PTElement> out) { |
8 | if (e == null) ret; |
9 | if (!(e instanceof HaveCategory && nempty(e.children)) && eqic(e.text(), word)) ret with out.add(e); |
10 | for (PTElement child : unnull(e.children)) |
11 | ai_scanParseTreeForWord_all_tighter_scan(child, word, out); |
12 | } |
Began life as a copy of #1017492
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: | #1017495 |
Snippet name: | ai_scanParseTreeForWord_all_tighter - returns more precise categories |
Eternal ID of this version: | #1017495/5 |
Text MD5: | 1eda51c067bd000bb2f32d1347af2b8f |
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 23:04:30 |
Source code size: | 509 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 360 / 395 |
Version history: | 4 change(s) |
Referenced in: | [show references] |