protected void reportFailedPredicate(@NotNull Parser recognizer, @NotNull FailedPredicateException e)
{
String ruleName = recognizer.getRuleNames()[recognizer.getContext().getRuleIndex()];
BeetlException exception = new BeetlParserException(BeetlException.PARSER_PREDICATE_ERROR, ruleName, e);
// exception.token = this.getGrammarToken(e.getOffendingToken());
exception.pushToken(this.getGrammarToken(e.getOffendingToken()));
throw exception;
}
BeetlAntlrErrorStrategy.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:beetl2.0
作者:
评论列表
文章目录