Skip to content

Report error messages using source line information #245

@tekknolagi

Description

@tekknolagi

@neuroevolutus plumbed source information through to AST nodes. Now we should be able to report interpreter and compiler errors more neatly.

I think we should have some kind of API like report_error_from(astnode, ...) that raises an exception and a separate API that catches that exception and formats an error neatly using spans (kind of like ariadne or the CPython traceback module). The exception-catcher probably has the source text still available so we don't need to plumb that through the various SourceExtents along the way.

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