@Override
public void recover(LexerNoViableAltException e) {
// Bail out of the lexer at the first lexical error instead of trying to recover.
// Use this in conjunction with BailErrorStrategy.
// Wrap the LexerNoViableAltException in a RuntimeWrapperException
// to be sure the lexer doesn't handle the LexerNoViableAltException.
// The LexerNoViableAltException will be extracted from the RuntimeWrapperException
// inside the compile() method below and re-thrown without the RuntimeWrapperException
// since we'll be outside of the lexer rules at that point.
throw new RuntimeWrapperException(e);
}
ZomicASTCompiler.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:vzome-core
作者:
评论列表
文章目录