summaryrefslogtreecommitdiff
path: root/Interpreter.java
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2013-04-22 13:42:11 (GMT)
committerJan Huwald <jh@sotun.de>2013-04-22 13:42:11 (GMT)
commitf788d4c48f2d94fcfd73a093ab33d734ab427cb8 (patch)
treebe4c00d562ec75f746736b5e0788f2847f7b8baa /Interpreter.java
Initial commit
Diffstat (limited to 'Interpreter.java')
-rw-r--r--Interpreter.java20
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();
+}
contact: Jan Huwald // Impressum