abstract sclass PartialAttractor implements Runnable { VF1<PartialAttractor> action; LS tok; IntRange matchedRange; public abstract bool find(); // uses tok public void run { callF(action, this); } toString { ret standard_toString(this); } bool acceptFull() { matchedRange = intRange(0, l(tok)); true; } S matchedString() { ret joinSubList(tok, matchedRange); } LS tok() { ret subList(tok, matchedRange); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022866 |
Snippet name: | PartialAttractor [advanced attractor matching just a part of the input] |
Eternal ID of this version: | #1022866/2 |
Text MD5: | 682f938d16ab7f53313c7ad2ed6d588d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-12 16:29:14 |
Source code size: | 489 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 319 / 762 |
Version history: | 1 change(s) |
Referenced in: | [show references] |