Download Jar. Uses 616K of libraries. Click here for Pure Java version (14533L/104K).
1 | !7 |
2 | |
3 | static L<S> opDiagrams = tlft([=[ |
4 | CirclesAndLines(circles=[Circle(text="Collapse node backward with name", x=d("0.3414985590778098"), y=d("0.4584139264990329")), Circle(text="\"I think that\"", x=d("0.7536023054755043"), y=d("0.46421663442940037"))], lines=[Arrow(a=t5, b=t26, text="")]) |
5 | ]=]); |
6 | |
7 | static L<S> inputDiagrams = tlft([=[ |
8 | CirclesAndLines(circles=[Circle(text="I think that", x=d("0.3270893371757925"), y=d("0.35589941972920697")), Circle(text="This is cool", x=d("0.6556195965417867"), y=d("0.35009671179883944"))], lines=[Arrow(a=t5, b=t26, text="")]) |
9 | ]=]); |
10 | |
11 | static SS operationsMap = lithashmap( |
12 | "Collapse node backward with name", f web_collapseNodeBackwardsWithName, |
13 | "Collapse backward with name", f web_collapseBackwardsWithName |
14 | ); |
15 | |
16 | p { |
17 | Web web = web_fromCALStructures(inputDiagrams); |
18 | Web opWeb = web_fromCALStructures(opDiagrams); |
19 | for (WebNode node : web_nodes(opWeb)) { |
20 | S function = operationsMap.get(node.text()); |
21 | if (function != null) { |
22 | S arg = web_operandText(node); |
23 | print(function + " " + arg); |
24 | callMC(function, web, arg); |
25 | } |
26 | } |
27 | showWeb(web); |
28 | } |
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: | #1010194 |
Snippet name: | Automatic operations [OK] |
Eternal ID of this version: | #1010194/5 |
Text MD5: | c6aeda32d68c103de87bd304be4efc61 |
Transpilation MD5: | d9a9a24e36cb0dbab666840577710e17 |
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-06 17:19:50 |
Source code size: | 1142 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 603 / 1307 |
Version history: | 4 change(s) |
Referenced in: | [show references] |