You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
The text was updated successfully, but these errors were encountered:
@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 likeariadne
or the CPythontraceback
module). The exception-catcher probably has the source text still available so we don't need to plumb that through the variousSourceExtent
s along the way.The text was updated successfully, but these errors were encountered: