catch (ParseError pe) {
ISourceLocation errorLoc = values.sourceLocation(pe.getLocation(), pe.getOffset(), pe.getLength(), pe.getBeginLine() + 1, pe.getEndLine() + 1, pe.getBeginColumn(), pe.getEndColumn());
throw RuntimeExceptionFactory.parseError(errorLoc, ctx.getCurrentAST(), ctx.getStackTrace());
}
catch (UndeclaredNonTerminalException e){
throw new UndeclaredNonTerminal(e.getName(), e.getClassName(), ctx.getCurrentAST());
}
}