Download Jar. Uses 2039K of libraries. Click here for Pure Java version (14042L/111K).
1 | !7 |
2 | |
3 | do not include function has. |
4 | |
5 | lib 1011230 // JavaParser for #759 |
6 | |
7 | sS progID = #1010745; |
8 | |
9 | p { |
10 | if (!headless()) restartWith384MBHeap(); |
11 | //substance(); |
12 | installWebLAF(); |
13 | consoleIcon(#1101170 /*#1101169*/); |
14 | stefansAssistant_p(); |
15 | botWithInput(progID); |
16 | //transpileForServer(progID); |
17 | } |
18 | |
19 | answer { |
20 | s = trim(s); |
21 | try answer stefansAssistant_answer(s); |
22 | |
23 | if "sts *" |
24 | ret yn(editSnippet_stringToSymbol($1)); |
25 | |
26 | set transpileForServer_forceJavacOnServer; |
27 | |
28 | if (eqic(s, "fresh")) { |
29 | veryQuickJava_refresh(); |
30 | ret "OK"; |
31 | } |
32 | if (swic_trim(s, "fresh ", m)) { |
33 | veryQuickJava_refresh(); |
34 | s = m.rest(); |
35 | } |
36 | //long time = sysNow(); |
37 | try { |
38 | loading "Transpiling..." { |
39 | transpileForServer(fsI(trim(s))); |
40 | } |
41 | } catch e { |
42 | infoBox(e); |
43 | throw rethrow(e); |
44 | } |
45 | /*S msg = "Transpiled & " |
46 | + (transpileForServer_compile ? "double-" : "") + "compiled" |
47 | + " in " + toS(sysNow()-time, 1) + " s";*/ |
48 | S msg = "Transpiled" |
49 | + (!isFalse(transpileForServer_compile!) ? " & compiled" : "") |
50 | + " in " + toS(transpileForServer_localTime, 1) + " s"; |
51 | thread { gc(); } |
52 | try answer infoBoxAndReturn(msg); |
53 | } |
Began life as a copy of #1011880
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, jmyaexzvplwz, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011922 |
Snippet name: | Stefan's Assistant 2 |
Eternal ID of this version: | #1011922/44 |
Text MD5: | 6d45c7090519f5ab2f08f5fd8d190aff |
Transpilation MD5: | 4fefd3ab0024943f5d0a3e0122514beb |
Author: | stefan |
Category: | javax / transpiling |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-09-19 23:48:12 |
Source code size: | 1200 bytes / 53 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 791 / 16706 |
Version history: | 43 change(s) |
Referenced in: | [show references] |