#101Error-recovering Parser

  • avatar~clovercommented · 2 years ago
    Author
    Owner

    Remove Parse.AstError, making the parser non-failiable (besides memory allocation). An unintelligible or invalid token stream turns into a new Ast node type containing the error, and the parser will attempt to recover.

    When Transform hits these invalid nodes, then an error is created.

    Combining this with #92, it means you can compile and run code with syntax errors in the file, provided you do not reach the malformed code at runtime.


    Milestone: 0.3.0.

  • avatar~clover changed the status to Todo · 2 years ago