Skip to content

Parser Suggestion: Panic Recovery Mode #473

@JohnnyDingYQ

Description

@JohnnyDingYQ

In the current state, the Virgril parser reports the first ParseError and stops parsing the given file. On ParseError, panic recovery mode discards input tokens until a synchronizing token is found and continue to parse from that point. I believe panic recovery mode is relatively straightforward to implement and benefits a future language server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions