We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When parsing an expression, extra closing parentheses are allowed; I would expect to receive an error:
parse mainParser "" "())"
produces Right ()
Right ()
I would expect it to produce a Left value
The text was updated successfully, but these errors were encountered:
I solved this by doing
parse (mainParser <* eof) ""
So, I'm not sure if the eof should be built into mainParser or not.
Sorry, something went wrong.
Thanks for the report. Yes, right now the parser only reads the first expression and discards any trailing characters in the input:
huski> (+ 1 2)) 3 huski> 1 2 3 1
It probably should throw an error if an extra parenthesis is found, and it would be nice if, at a higher level, more expressions were parsed.
No branches or pull requests
When parsing an expression, extra closing parentheses are allowed; I would expect to receive an error:
produces
Right ()
I would expect it to produce a Left value
The text was updated successfully, but these errors were encountered: