Download Jar. Uses 3874K of libraries. Click here for Pure Java version (10980L/77K).
1 | !7 |
2 | |
3 | sS concepts = [[ |
4 | xdzeaxtmkazaxncy - Set object to string X |
5 | ocipgkzuhonmxyxp - Run standard function X on object |
6 | rkaqgiahlhpqcsfb - Cool! |
7 | ]]; |
8 | |
9 | sO object; |
10 | sS text; |
11 | static JTextArea taObject; |
12 | static JTextField tfCmd; |
13 | |
14 | p-awt {
|
15 | blueSteel(); |
16 | useConcepts(concepts); |
17 | object = 5; |
18 | text = struct(object); |
19 | taObject = wrappedTextArea(text); |
20 | setFontSize(taObject, 15); |
21 | tfCmd = jtextfield("ocipgkzuhonmxyxp plus1");
|
22 | showFrame( |
23 | centerAndSouth(jSection("Object", taObject),
|
24 | jSection("Command", textFieldWithButton("Go", tfCmd))));
|
25 | onEnter(tfCmd, f go); |
26 | requestFocus(tfCmd); |
27 | hideConsole(); |
28 | } |
29 | |
30 | svoid go {
|
31 | tfCmd.selectAll(); |
32 | final Lisp cmd = englishToLisp(getTextTrim(tfCmd)); |
33 | thread { pcall-messagebox { loading {
|
34 | if (cmd.is("ocipgkzuhonmxyxp", 1)) // Run standard function X on object
|
35 | setObject(makeAndCall_cached(cmd.raw(0), object); |
36 | if (cmd.is("xdzeaxtmkazaxncy", 1)) // Set object to string X
|
37 | setObject(cmd.raw(0)); |
38 | if (cmd.is("rkaqgiahlhpqcsfb"))
|
39 | infoBox("Thanks!");
|
40 | }}} |
41 | } |
42 | |
43 | svoid setObject(fO o) swing {
|
44 | object = o; |
45 | try {
|
46 | text = struct(o); |
47 | } catch e {
|
48 | text = getStackTrace(e); |
49 | } |
50 | taObject.setText(text); |
51 | } |
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: | #1008042 |
| Snippet name: | Interactive Java [dev.] |
| Eternal ID of this version: | #1008042/20 |
| Text MD5: | fd0ace180865d2e24660eb8b517aa60a |
| Transpilation MD5: | d4e2ec2382754efa521a6ad1a57036ab |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-21 16:42:52 |
| Source code size: | 1236 bytes / 51 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 922 / 2091 |
| Version history: | 19 change(s) |
| Referenced in: | [show references] |