void match(int t) throws IOException { if (look.tag == t && skipFlag == -1) { matchExecuted = true; move(); } else if (skipFlag == 1) { skipFlag = -1; } else { error("syntax error"); } }
public Parser(Lexer lex, StackMachine stackMachine) throws IOException { lexer = lex; this.stackMachine = stackMachine; threeAddressCodeGenerator = new ThreeAddressCodeGenerator(); move(); }