Download Jar. Uses 616K of libraries. Click here for Pure Java version (14533L/104K).
!7 static L<S> opDiagrams = tlft([=[ 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="")]) ]=]); static L<S> inputDiagrams = tlft([=[ 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="")]) ]=]); static SS operationsMap = lithashmap( "Collapse node backward with name", f web_collapseNodeBackwardsWithName, "Collapse backward with name", f web_collapseBackwardsWithName ); p { Web web = web_fromCALStructures(inputDiagrams); Web opWeb = web_fromCALStructures(opDiagrams); for (WebNode node : web_nodes(opWeb)) { S function = operationsMap.get(node.text()); if (function != null) { S arg = web_operandText(node); print(function + " " + arg); callMC(function, web, arg); } } showWeb(web); }
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: | 601 / 1300 |
Version history: | 4 change(s) |
Referenced in: | [show references] |