summaryrefslogtreecommitdiff
path: root/InterpreterStandalone.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 /InterpreterStandalone.java
Initial commit
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