init with {: :}
parser code {:
+
+ public String filename;
public void syntax_error (java_cup.runtime.Symbol current) {
CUP$SDLParser$actions.errors = true;
Symbol symbol = (Symbol) current;
- report_error("SDL: Syntax error at line " + (symbol.line + 1)
+ report_error("TDL: Syntax error at line " + (symbol.line + 1)
+ ", column " + LineCount.getColumn(symbol.left) + ": " + current.value, current);
+ System.exit(0);
}
public void report_fatal_error (String message, Object info) {