summaryrefslogtreecommitdiff
path: root/InterpreterStandalone.java
blob: 8b33bde6a7438f701411ba761d026b5790c4931f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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