static S runTranslator(S text, S translatorID) { Class javax = getJavaX(); File x = makeTempDir(); saveTextFile(new File(x, "main.java"), text); new List<File> libraries_out; File y = cast call(javax, "applyTranslator", x, translatorID, "", libraries_out); if (y == null) return null; return loadTextFile(new File(y, "main.java")); } static L<S> runTranslator(L<S> tok, S translatorID) { ret javaTok(runTranslator(join(tok), translatorID)); }
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: | #1001808 |
| Snippet name: | runTranslator |
| Eternal ID of this version: | #1001808/1 |
| Text MD5: | 6f62a679f1576b1ae8f11391bb966319 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-11-16 21:31:36 |
| Source code size: | 503 bytes / 14 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 855 / 1276 |
| Referenced in: | [show references] |