[YANGTOOLS-905] Detect ANTLR lexer errors Created: 19/Sep/18  Updated: 10/Apr/22  Resolved: 19/Oct/18

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.12, 2.0.6.4, 2.1.3

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

During work on YANGTOOLS-887 it became clear that our current use of ANTLR could be improved, because we only attach ANTLRErrorListener to parsers, but not lexers.

This leads to the problem of us failing to report lexer errors and we only report parser errors which come from the failure to lex.

Improve this by also attaching listeners to lexers, too.


Generated at Wed Feb 07 20:54:38 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.