Libraryless. Click here for Pure Java version (2275L/17K/52K).
!759 p { //OccTree2 tree = makeOccTree("Let's examine your input"); Dialog dialog = first(loadDialogs("Let's examine your input")); L<E> poem = dialog.poem; new StrictTreeMap strictMap; O grabber = func(S in) { parsePoemLine(findLastQuoted(in)).type() }; for (int i = 1; i < l(poem); i++) { E a = poem.get(i-1), b = poem.get(i); if (!(a.q() && b.a())) continue; S in = a.q, out = b.a; try { O type = callFunction(grabber, in); if (type != null) { strictMap.put(type, out); print(type + " => " + out); } } catch {} } print("Success!"); printStructure(strictMap); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1003473 |
| Snippet name: | Line Learning Test (relate bot line to user line) |
| Eternal ID of this version: | #1003473/1 |
| Text MD5: | f0dfb17e596818183bf0b1173feaccf5 |
| Transpilation MD5: | 7fe80588f046f42d16587eedbb1a573e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-07-05 17:27:51 |
| Source code size: | 658 bytes / 23 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 778 / 901 |
| Referenced in: | -