Ejemplo n.º 1
0
 protected void warning(int line, int column, String msg) throws LexerException {
   if (werror) error(line, column, msg);
   else if (listener != null) listener.handleWarning(this, line, column, msg);
   else throw new LexerException("Warning at " + line + ":" + column + ": " + msg);
 }
Ejemplo n.º 2
0
 protected void error(int line, int column, String msg) throws LexerException {
   if (listener != null) listener.handleError(this, line, column, msg);
   else throw new LexerException("Error at " + line + ":" + column + ": " + msg);
 }