Algorithm Interpreter using JavaCC