Libraryless. Click here for Pure Java version (495L/4K/13K).
1 | !752 |
2 | |
3 | static Class ji; |
4 | |
5 | p { |
6 | ji = hotwire("#1002015"); |
7 | assertEquals("hello", interpret("ret \"hello\";")); |
8 | print("ok 1"); |
9 | assertEquals("HELO", interpret("ret collapseWord(\"HELLO\");")); |
10 | assertEquals(true, interpret("ret eq(\"a\", \"a\");")); |
11 | assertEquals(false, interpret("ret eq(\"a\", \"b\");")); |
12 | print("ok!"); |
13 | } |
14 | |
15 | static O interpret(S java) { |
16 | ret call(ji, "interpret", java); |
17 | } |
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: | 663 / 716 |
Referenced in: | [show references] |