summaryrefslogtreecommitdiff
path: root/InterpreterStandalone.java
diff options
context:
space:
mode:
Diffstat (limited to 'InterpreterStandalone.java')
-rw-r--r--InterpreterStandalone.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/InterpreterStandalone.java b/InterpreterStandalone.java
new file mode 100644
index 0000000..8b33bde
--- /dev/null
+++ b/InterpreterStandalone.java
@@ -0,0 +1,14 @@
+/**
+ * use an Interpreter interface to create a standalone application
+ *
+ * Copy this file and change XorInterpreter to the name of your
+ * intepereter.
+ */
+class InterpreterStandalone {
+ public static void main(String[] args){
+ // use your interpreter here
+ Interpreter vm = new XorInterpreter();
+ String res = vm.eval(args[0], args[1]);
+ System.out.println(res);
+ }
+}
contact: Jan Huwald // Impressum