Libraryless. Click here for Pure Java version (3036L/18K).
1 | svoid test_SimpleInterpreter() { |
2 | assertEquals("world", new SimpleInterpreter().newState() |
3 | .set("hello", "world") |
4 | .set("whatever", 123) |
5 | .eval(new SimpleInterpreter.GetVar("hello"))); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030698 |
Snippet name: | test_SimpleInterpreter |
Eternal ID of this version: | #1030698/1 |
Text MD5: | 33aabaa6d6fd18a99fdd9a3159c7f293 |
Transpilation MD5: | c48df1fc4f86127594ade59cc57aee82 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-03-08 20:18:00 |
Source code size: | 202 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 194 / 276 |
Referenced in: | [show references] |