Libraryless. Compilation Failed (16016L/112K).
1 | !7 |
2 | |
3 | sclass MatchInput > DynPrintLogWithInput { |
4 | start { dm_useLocallyCopiedMechLists(); } |
5 | |
6 | class MatchResult1 { |
7 | L<S> tokPat; |
8 | LPairS knownMatches, assumedMatches; |
9 | } |
10 | |
11 | void update(S s) { |
12 | print("\n> " + s); |
13 | L<S> tok = printStruct(javaTokWithAngleBracketsC(s)); |
14 | PlanInMotion<S> plan = new(mech_englishSentencePatterns()); |
15 | |
16 | L<Result> results = new L; // pattern + match |
17 | Iterator stage1 = mapI(plan.master(), |
18 | matchAngleBracketPattern(pat, tok, results); |
19 | |
20 | for (Pair<S, L<PairS>> p : sortedByLengthOfPairBList(results)) |
21 | print(" [" + l(p.b) + "]: Choose pattern " + quote(p.a) + " for input " + quote(s) + " if match: " + ai_renderMatch(p.b)); |
22 | } |
23 | } |
Began life as a copy of #1017207
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: | #1017286 |
Snippet name: | Match Input With Pattern v4 (with stages, dev.) |
Eternal ID of this version: | #1017286/4 |
Text MD5: | 7e171b1b0327c4c5ad4bd09bc554e55d |
Transpilation MD5: | 9d4cde79263351c0b0e09eb0d48a040d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-16 14:19:47 |
Source code size: | 722 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 384 / 541 |
Version history: | 3 change(s) |
Referenced in: | [show references] |