Download Jar. Libraryless. Click here for Pure Java version (18682L/133K).
1 | !7 |
2 | |
3 | p {
|
4 | ai_alternativeSmartBot(); |
5 | |
6 | WordSequence pat = WordSequence( |
7 | SomethingWhichIs("a noun"),
|
8 | SomethingWhichIs("a verb"));
|
9 | printStruct(pat); |
10 | |
11 | WordSequence real = WordSequence("plants", "grow");
|
12 | printStruct(real); |
13 | |
14 | new IdentityHashMap map; |
15 | if (recursiveMatch(ll(f matchWordSequence, f matchSomethingWhichIs), pat, real, map)) |
16 | printStruct(map); |
17 | else |
18 | print("no match");
|
19 | } |
Began life as a copy of #1012747
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1012755 |
| Snippet name: | Playing with patterns v2 [OK] |
| Eternal ID of this version: | #1012755/8 |
| Text MD5: | b5a585b673a5fa62c9ee913eba0be7d1 |
| Transpilation MD5: | 5c6a3787b6aa53116e594188f265d25a |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-11 20:32:01 |
| Source code size: | 426 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 674 / 1462 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |