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

53
LINES

< > BotCompany Repo | #1011922 // Stefan's Assistant 2

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

Download Jar. Uses 2039K of libraries. Click here for Pure Java version (14042L/111K).

!7

do not include function has.

lib 1011230 // JavaParser for #759

sS progID = #1010745;

p {
  if (!headless()) restartWith384MBHeap();
  //substance();
  installWebLAF();
  consoleIcon(#1101170 /*#1101169*/);
  stefansAssistant_p();
  botWithInput(progID);
  //transpileForServer(progID);
}

answer {
  s = trim(s);
  try answer stefansAssistant_answer(s);
  
  if "sts *"
    ret yn(editSnippet_stringToSymbol($1));
  
  set transpileForServer_forceJavacOnServer;
  
  if (eqic(s, "fresh")) {
    veryQuickJava_refresh();
    ret "OK";
  }
  if (swic_trim(s, "fresh ", m)) {
    veryQuickJava_refresh();
    s = m.rest();
  }
  //long time = sysNow();
  try {
    loading "Transpiling..." {
      transpileForServer(fsI(trim(s)));
    }
  } catch e {
    infoBox(e);
    throw rethrow(e);
  }
  /*S msg = "Transpiled & "
    + (transpileForServer_compile ? "double-" : "") + "compiled"
    + " in " + toS(sysNow()-time, 1) + " s";*/
  S msg = "Transpiled"
    + (!isFalse(transpileForServer_compile!) ? " & compiled" : "")
    + " in " + toS(transpileForServer_localTime, 1) + " s";
  thread { gc(); }
  try answer infoBoxAndReturn(msg);
}
 

Author comment

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: 790 / 16702
Version history: 43 change(s)
Referenced in: #1011923 - transpileForServer
#3000475 - Smart Bot's answer to: !fresh recentlyChangedSnippets()