Uses 911K of libraries. Click here for Pure Java version (4132L/21K).
1 | !7 |
2 | |
3 | srecord Match(S pattern, SS arguments) {}
|
4 | |
5 | cmodule ELEMatchPatterns > DynObjectTable<Match> {
|
6 | S input; |
7 | |
8 | start {
|
9 | process(ele_currentInput()); |
10 | dm_vmBus_onMessage eleNewInput((IVF1<S>) (input -> process(input))); |
11 | } |
12 | |
13 | // TODO: proper queueing |
14 | void process(S input) q {
|
15 | setField(+input); |
16 | |
17 | Cl<S> patterns = dm_inputPatternsCRUD_rawPatterns(); |
18 | new L<Match> out; |
19 | fOr (S pat : patterns) |
20 | for (Matches m : flexMatchIC_withBrackets_iterator(pat, input)) |
21 | out.add(Match(pat, matchesToMap(m))); |
22 | setList(out); |
23 | } |
24 | } |
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: | 521 / 5872 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |