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

20
LINES

< > BotCompany Repo | #1000347 // translatorMainAdder in JavaX

JavaX translator [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (72L/1K/4K).

!592 // auto-import
!1000265 // standard function adder

public class main {
  static String prelude =
    "public class main {\n" +
    "  public static void main(String[] args) throws Exception {\n" +
    "    String s = loadMainJava();\n";
  static String postlude = "\n" +
    "    saveMainJava(s);\n" +
    "  }\n" +
    "}\n";

  public static void main(String[] args) throws IOException {
    String code = loadTextFile("input/main.java", null);
    if (code == null)
      throw new RuntimeException("Nothing to do (no input/main.java)");
    saveTextFile("output/main.java", prelude + code + postlude);
  }
}

Author comment

Began life as a copy of #609

download  show line numbers  debug dex  old transpilations   

Travelled to 18 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, kmhbujppghqa, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

Comments [hide]

ID Author/Program Comment Date
221 #1000604 (pitcher) 2015-08-18 00:51:38
207 #1000610 (pitcher) 2015-08-18 00:51:05

add comment

Snippet ID: #1000347
Snippet name: translatorMainAdder in JavaX
Eternal ID of this version: #1000347/1
Text MD5: cb8aae808aae45240bf1411453debba5
Transpilation MD5: 6efc4e9db57f0dfaa5c39b7cd9a538b3
Author: stefan
Category:
Type: JavaX translator
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-07-31 00:10:20
Source code size: 636 bytes / 20 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 856 / 1111
Referenced in: [show references]