Download Jar. Libraryless. Click here for Pure Java version (6711L/49K).
1 | !7 |
2 | |
3 | !include once #1017600 // Computation Tree Include v2 |
4 | |
5 | sclass ToParse extends ObjectNode<S> { *(S *obj) {} } |
6 | sclass OptionsNode extends CTNode {} |
7 | sclass InterpretAs extends ObjectNode<S> { *(S *obj) {} } |
8 | sclass CNCSplit extends ObjectNode<LS> { *(LS *obj) {} } |
9 | |
10 | p-exp { |
11 | ToParse root = new("Test me buddy"); |
12 | new OptionsNode options; |
13 | root.add(options); |
14 | options.add(InterpretAs("sentence")); |
15 | L<S> tok = javaTok(root.obj); |
16 | if (l(tok) > 1) { |
17 | int i = l(tok)-2; // C token |
18 | options.add(CNCSplit(ll( |
19 | first(tok), |
20 | joinSubList(tok, 1, i-1), |
21 | tok.get(i-1), |
22 | joinSubList(tok, i, l(tok)-1), |
23 | last(tok)))); |
24 | } |
25 | |
26 | showFrame(jCTDynamicTree(root)); |
27 | } |
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: | #1017603 |
Snippet name: | Test me buddy Spike [OK] |
Eternal ID of this version: | #1017603/8 |
Text MD5: | bd1de1b32731373b3146384cffc3c21c |
Transpilation MD5: | 14208ffaba8c77b03ddbf183817630f0 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-29 17:48:54 |
Source code size: | 713 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 371 / 889 |
Version history: | 7 change(s) |
Referenced in: | [show references] |