Uses 911K of libraries. Click here for Pure Java version (4132L/21K).
!7 srecord Match(S pattern, SS arguments) {} cmodule ELEMatchPatterns > DynObjectTable<Match> { S input; start { process(ele_currentInput()); dm_vmBus_onMessage eleNewInput((IVF1<S>) (input -> process(input))); } // TODO: proper queueing void process(S input) q { setField(+input); Cl<S> patterns = dm_inputPatternsCRUD_rawPatterns(); new L<Match> out; fOr (S pat : patterns) for (Matches m : flexMatchIC_withBrackets_iterator(pat, input)) out.add(Match(pat, matchesToMap(m))); setList(out); } }
Began life as a copy of #1026353
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026359 |
Snippet name: | ELE: Match Patterns [to current input] |
Eternal ID of this version: | #1026359/8 |
Text MD5: | c3cb7b5341e3d27e3e2cf481cf26a751 |
Transpilation MD5: | 85ec3c87f411e99e057372716471df60 |
Author: | stefan |
Category: | javax / electric logic engine |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-25 16:03:27 |
Source code size: | 587 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 239 / 5550 |
Version history: | 7 change(s) |
Referenced in: | [show references] |