Skip to content

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

Description

@masak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions