Libraryless. Click here for Pure Java version (8704L/63K).
1 | // return (ok, result/error) |
2 | static Pair<Bool, S> transpileForServer_returnPair(S progID, S mode) {
|
3 | if (!eqOneOf(mode, null, "", "quick")) refreshTranspiler(); |
4 | new Flag error; |
5 | S out = hijackPrint_tee(r {
|
6 | try {
|
7 | transpileForServer(progID); |
8 | } catch print e {
|
9 | error.raise(); |
10 | } |
11 | }); |
12 | if (error!) |
13 | ret pair(false, out); |
14 | else |
15 | ret pair(true, "Transpiled & uploaded " + fsI(progID) + "!"); |
16 | } |
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: | 442 / 601 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |