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

Cannot use period as an identifier #500

Open
Zambito1 opened this issue Feb 28, 2023 · 0 comments
Open

Cannot use period as an identifier #500

Zambito1 opened this issue Feb 28, 2023 · 0 comments

Comments

@Zambito1
Copy link

Given the following two programs:

(import (scheme base)
	(scheme write))

(define |.| 'hello)

(display |.|)
(newline)
(import (scheme base)
	(scheme write))
;; hex code for .
(define |\x2e;| 'hello)

(display |\x2e;|)
(newline)

Both programs should compile and print hello. Currently, neither program will compile with the following error:

Error: Unbound variable(s):
(. hello)

It seems like the identifier is not terminating until the closing parenthesis. Here is another example that may be helpful:

(import (scheme base)
	(scheme write))

(define |.| 5)

(display |.|)
(newline)
Error: length - invalid parameter, expected list:
5
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