Skip to content
New issue

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

Parser choke on ’ character #430

Open
1 task
jcubic opened this issue Jan 20, 2025 · 2 comments
Open
1 task

Parser choke on ’ character #430

jcubic opened this issue Jan 20, 2025 · 2 comments

Comments

@jcubic
Copy link
Owner

jcubic commented Jan 20, 2025

Using invalid quotation that is part of R7RS spec doesn't work anymore.

(list-ref ’(a b c d)
                (exact (round 1.8)))
;; ==> Error: You're using an invalid Unicode quote character. Run: (set-special! "’" 'quote) to allow the use of this type of quote
(set-special! "" 'quote)
;; ==> Parser: expected parenthesis but eof found

And the REPL is totally bricked.

TODO:

  • document the usage of from R7RS spec.
@jcubic jcubic added bug Something isn't working critical regression labels Jan 20, 2025
jcubic added a commit that referenced this issue Jan 21, 2025
When syntax extension throw an error inside an S-Expression,
the state inside the parser was not reset, and it was
throwing an error about unbalanced parentheses.
@jcubic
Copy link
Owner Author

jcubic commented Jan 22, 2025

The problem is with any error from Parser in the middle of S-Expression. The reason was that when parser gets a new expression in REPL, the state was not reset, so it was throwing an error about unbalanced parentheses.

@jcubic
Copy link
Owner Author

jcubic commented Jan 22, 2025

It's also worth documenting the use of symbol while reading R7RS spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant