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
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Any invalid syntax like {.
Expected behavior
The expected behavior would be a SyntaxError with the parser error.
Actual behavior
we get a panic with the message.
Additional context
I think the best way to implement this would be to have the lexer and parser, generate the error as we do now but not panic, and in forward we check if lexing or parsing failed and then throw a SyntaxError, this would eliminate the need to introduce the Interpreter to the lexer/parser which would keep the code cleaner.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Any invalid syntax like
{
.Expected behavior
The expected behavior would be a
SyntaxError
with the parser error.Actual behavior
we get a panic with the message.
Additional context
I think the best way to implement this would be to have the lexer and parser, generate the error as we do now but not panic, and in
forward
we check if lexing or parsing failed and then throw aSyntaxError
, this would eliminate the need to introduce theInterpreter
to the lexer/parser which would keep the code cleaner.This is blocked until #536 lands
The text was updated successfully, but these errors were encountered: