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

17
LINES

< > BotCompany Repo | #1002011 // Test Java Interpreter

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

Libraryless. Click here for Pure Java version (495L/4K/13K).

!752

static Class ji;

p {
  ji = hotwire("#1002015");
  assertEquals("hello", interpret("ret \"hello\";"));
  print("ok 1");
  assertEquals("HELO", interpret("ret collapseWord(\"HELLO\");"));
  assertEquals(true, interpret("ret eq(\"a\", \"a\");"));
  assertEquals(false, interpret("ret eq(\"a\", \"b\");"));
  print("ok!");
}

static O interpret(S java) {
  ret call(ji, "interpret", java);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002011
Snippet name: Test Java Interpreter
Eternal ID of this version: #1002011/1
Text MD5: c4df1f758a2b592e51679f520f28f5f8
Transpilation MD5: edef1375b53b14e7f19d37bdcff22985
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-13 19:12:32
Source code size: 413 bytes / 17 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 602 / 633
Referenced in: #3000190 - Answer for stefanreich(>> t 20 questions)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)