public Token getOffendingSymbol() {
if ( e instanceof NoViableAltException ) {
// the error node in parse tree will have the start token as bad token
// even if many lookahead tokens were matched before failing to find
// a viable alt.
return ((NoViableAltException) e).getStartToken();
}
return offendingSymbol;
}
SyntaxError.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:jetbrains
作者:
评论列表
文章目录