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

Bug: Perl-based reader doesn't handle a comment in the middle of an empty set of parens correctly #441

Open
masak opened this issue Feb 2, 2024 · 0 comments

Comments

@masak
Copy link
Owner

masak commented Feb 2, 2024

This code, when stored in a file and run from the command line:

(
; comment
)

Fails with this error message:

Error: ('unboundb )

But the same code, when fed through the Bel reader on the REPL:

> (set s (append "(" (list \lf) "; comment" (list \lf) ")"))
"(
; comment
)"
> (read (list s))
nil

Works and gives the correct result nil.

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

No branches or pull requests

1 participant