Skip to content

Support emitting multiple parser errors #203

@Chriscbr

Description

@Chriscbr

Hi there!

I tried writing some code in the playground that had multiple parsing errors, but only the last error was surfaced to me:

// https://kaleidawave.github.io/ezno/playground/?id=32i0hs
let a =
let b =
if true {
}

// Expected OpenParentheses found Keyword(True)

I was wondering if error recovery and trying to surface multiple parser errors is something in scope for the project or not.

Since the project's focus is on static analysis and runtime performance, I imagine the friendliness of parsing errors might be more of a backlog thing (especially given that any error recovery mechanism is a best guess). But I figured I'd ask anyway since surfacing more errors can sometimes improve the live coding experience with a compiler.

Feel free to close if this issue isn't relevant. Thanks again for working on this project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestparserRelated to Ezno's syntax parser, AST definitions and output

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions