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

The R6RS reader does not treat # as a delimiter for numbers #687

Open
mnieper opened this issue Mar 25, 2023 · 0 comments
Open

The R6RS reader does not treat # as a delimiter for numbers #687

mnieper opened this issue Mar 25, 2023 · 0 comments

Comments

@mnieper
Copy link
Contributor

mnieper commented Mar 25, 2023

In the lexical syntax of R6RS, the # character is a delimiter (the rationale for this is, I think, that this excludes comments within identifiers and numbers). In particular, the input 3#f should be tokenized into the lexemes 3 and #f. A transcript of the Chez Scheme REPL, however, shows the following:

> (let ([p (open-string-input-port "#!r6rs 3#f")])
     (get-datum p))
Exception in get-datum: 3#f symbol syntax is not allowed in #!r6rs mode at char 7 of #<input port string>
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