Download Jar. Libraryless. Click here for Pure Java version (14464L/103K).
1 | !7 |
2 | |
3 | p { |
4 | bot(); |
5 | } |
6 | |
7 | sclass WithFunction { |
8 | S text, function; |
9 | WithFunction next; |
10 | |
11 | *() {} |
12 | *(S *text) {} // unknown function |
13 | *(S *text, S *function) {} |
14 | } |
15 | |
16 | answer { |
17 | WithFunction start = WithFunction(dropPunctuation(s)); |
18 | |
19 | for (WithFunction wf = start; wf != null; wf = wf.next) |
20 | splitUp(wf); |
21 | |
22 | // Show as web |
23 | |
24 | L<WebNode> nodes = web_stringsToChain(collect(linkedObjectsToList(start, 'next), 'text)); |
25 | |
26 | if (nempty(nodes)) { |
27 | showWeb(first(nodes).web); |
28 | try answer "OK"; |
29 | } |
30 | } |
31 | |
32 | svoid splitUp(WithFunction wf) { |
33 | // TODO |
34 | } |
Began life as a copy of #1010396
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: | #1010409 |
Snippet name: | User input to diagram v2 [dev.] |
Eternal ID of this version: | #1010409/7 |
Text MD5: | 0530d130229fe4b00e089820be5107eb |
Transpilation MD5: | 5e9a62d2806b9f988e29ee37c8c30d65 |
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-09-15 19:00:41 |
Source code size: | 584 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 490 / 1040 |
Version history: | 6 change(s) |
Referenced in: | [show references] |