开发者

How to disable error recover in antlr3

开发者 https://www.devze.com 2023-03-28 15:58 出处:网络
If we don\'t want parser to \'recover\' from errors, how to disable recovery and just let excepti开发者_C百科on slip out in antlr3 ?

If we don't want parser to 'recover' from errors, how to disable recovery and just let excepti开发者_C百科on slip out in antlr3 ?

I get a solution on http://www.antlr.org/pipermail/antlr-interest/2006-September/017536.html But it doesn't work.


Your posted link is pretty much spot on.

You override the error recovery methods, mismatch is only one of them, There are a few, depending on the error.

I don't have the code in front of me right now, but look at all the mismatch methods in the parser file.

0

精彩评论

暂无评论...
验证码 换一张
取 消