Logging ParseTree Errors

23 views
Skip to first unread message

suneel kumar

unread,
Apr 6, 2015, 3:42:15 AM4/6/15
to antlr-di...@googlegroups.com
Hi,

Is there any way to detect which line/block of input is successfully parsed in the parse tree and which line of input is having the error while building a parse tree.
If there is a way to detect can i have the line/block of code which is failed to build a parse tree can be logged?

Thanks,
Suneel.

Eric Vergnaud

unread,
Apr 6, 2015, 8:16:52 AM4/6/15
to antlr-di...@googlegroups.com
Hi,

yes, all you need to do is install your own error listener.

Eric
Reply all
Reply to author
Forward
0 new messages