Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-390

Exit compiler on parser failure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.0
    • SimPEL
    • None

    Description

      The current parser implementation, mostly thanks to ANTLR, is very good at recovering from lexing and parsing errors and continuing the parsing all the way down. The goal is to report as many errors upfront. as possible. But at the moment the compiler tries to build an OModel even if the parser failed which shouldn't be the case as it results in duplicate reports for several errors.

      Parsing and compilation should be two distinct phases and the compiler should attempt compilation if parsing failed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mriou Matthieu Riou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: