Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

23
LINES

< > TinyBrain | #1010372 - JavaX Source To Web [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Uses 1937K of libraries. Click here for Pure Java version (14628L/104K).

!759

sS src = [[
  !7
  
  p {
    print("Hello world!");
  }
]];

p-noconsole {
  cal_lineLength(10);
  L<S> tok = javaTokC(src);
  L<WebNode> nodes = web_stringsToChain(tok);
  Map<int> map = getBracketMapC(tok);
  for (int i : keys(map))
    web_addRelation(nodes.get(map.get(i)), nodes.get(i), "closes");
  calAutoLayout2_onByDefault = false;
  web_placeNodesOnU(nodes);
  Canvas c = second(showWeb(first(nodes)));
  addToWindowSplitLeft(centerFrame(900, 500, c),
    withTitle("Original Source", jtypewritertextarea(src)), 0.3);
}

download  show line numbers  debug dex   

Travelled to 3 computer(s): cfunsshuasjs, onxytkatvevr, tvejysmllsmz

No comments. add comment

Snippet ID: #1010372
Snippet name: JavaX Source To Web [OK]
Eternal ID of this version: #1010372/15
Text MD5: 30fb1ebcf2d0e8f02569de2a1f16560d
Transpilation MD5: 97800ada05f21399f4aaec1133bdcf41
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-13 21:51:21
Source code size: 558 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 63 / 189
Version history: 14 change(s)
Referenced in: [show]