Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-905

Detect ANTLR lexer errors

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 2.0.12, 2.0.6.4, 2.1.3
    • None
    • None

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: