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

16
LINES

< > BotCompany Repo | #1026480 // transpileForServer_returnPair

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (8704L/63K).

// return (ok, result/error)
static Pair<Bool, S> transpileForServer_returnPair(S progID, S mode) {
  if (!eqOneOf(mode, null, "", "quick")) refreshTranspiler();
  new Flag error;
  S out = hijackPrint_tee(r {
    try {
      transpileForServer(progID);
    } catch print e {
      error.raise();
    }
  });
  if (error!)
    ret pair(false, out);
  else
    ret pair(true, "Transpiled & uploaded " + fsI(progID) + "!");
}

Author comment

Began life as a copy of #1011923

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026480
Snippet name: transpileForServer_returnPair
Eternal ID of this version: #1026480/3
Text MD5: fe37d0d2853255593231f36e4c3ce9f5
Transpilation MD5: c48bf8e118d012a28a7d558d23215bd3
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-06 15:45:34
Source code size: 438 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 225 / 332
Version history: 2 change(s)
Referenced in: [show references]