diff options
Diffstat (limited to 'Interpreter.java')
-rw-r--r-- | Interpreter.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Interpreter.java b/Interpreter.java new file mode 100644 index 0000000..6dbff12 --- /dev/null +++ b/Interpreter.java @@ -0,0 +1,20 @@ +interface Interpreter { + /** + * return result of intepreted code, given param as argument + */ + public String eval(String code, String param); + + /** + * print the program code parses to + */ + public String print(String code); + + /** + * print a trace of the intepretation of code given param + */ + public String trace(String code, String param); + + public int minLength(); + + public int maxLength(); +} |