Uses 3874K of libraries. Click here for Pure Java version (10708L/74K/255K).
1 | !7 |
2 | |
3 | static new JTextField tf; |
4 | static JTable tblResult, tblProductions; |
5 | |
6 | p { |
7 | magellan(); |
8 | aiEnhancements(); |
9 | swing { |
10 | showFrame(northAndCenter(textFieldWithButton("Parse", tf = jcenteredtextfield("Can an animal sing?")), |
11 | /*jhsplit*/(tblResult = sexyTable(), /*tblProductions = sexyTable()*/))); |
12 | setFrameWidth(tf, 900); |
13 | onEnter(tf, r-thread { |
14 | S input = getTextTrim(tf); |
15 | new L data; |
16 | try { |
17 | S cl = englishToConceptLanguage(input); |
18 | data.add(litorderedmap( |
19 | "Computer Language", cl, |
20 | "English", conceptLanguageToEnglish(cl))); |
21 | } catch e { |
22 | data.add(litorderedmap("Error: " + printStackTrace(e))); |
23 | } |
24 | showTable(tblResult, data); |
25 | }); |
26 | simulateEnter(tf); |
27 | hideConsole(); |
28 | } |
29 | } |
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: | #1007772 |
Snippet name: | Parser Visualizer [dev.] |
Eternal ID of this version: | #1007772/10 |
Text MD5: | 205462d52b10de2b8886ab26c734dfe2 |
Transpilation MD5: | de456a74ebb9f8cd0e010627aade0c4b |
Author: | stefan |
Category: | javax / a.i. / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-05 18:10:46 |
Source code size: | 801 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 540 / 677 |
Version history: | 9 change(s) |
Referenced in: | [show references] |