public Parser(Scanner scanner) { this.hook = new ErrorHook(); this.scanner = scanner; this.currentToken = this.scanner.nextToken(); this.panic = false; }
public Parser(ILexer lexer) { this.lexer = lexer; this.currentToken = this.lexer.nextToken(); this.hook = new ErrorHook(); this.panic = false; }
public void sendHook(HookType type, string message) { Hook temp; switch (type) { case HookType.Action: temp = new ActionHook(message); break; case HookType.Error: temp = new ErrorHook(message); break; case HookType.Input: temp = new InputHook(message); break; default: temp = new Hook(); Debug.LogError("sendHook with string parameter could not determine hook type!"); break; } passHook(temp); }
protected virtual void errorHook(ErrorHook hook) { return; }
public TypeCheckingVisitor(SymbolTableManager stm) { this.stm = stm; hook = new ErrorHook(); }
public TypeCheckingVisitor(SymbolTable table) { this.table = table; this.hook = new ErrorHook(); }
public IdentifierUsageCheckingVisitor(SymbolTableManager stm) { this.stm = stm; this.hook = new ErrorHook(); }
public SymbolTableBuildingVisitor() { this.symbolTables = new SymbolTables(); this.currentTable = null; this.hook = new ErrorHook(); }
public SymbolTableBuildingVisitor() { this.table = new SymbolTable(); this.hook = new ErrorHook(); }