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

Parsing of recursive array literals #375

Open
jcubic opened this issue Aug 30, 2024 · 1 comment
Open

Parsing of recursive array literals #375

jcubic opened this issue Aug 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jcubic
Copy link
Owner

jcubic commented Aug 30, 2024

This code:

(write '(1 2 #0=#(1 2 #0#)))

Prints:

(1 2 #(1 2 #<DatumReference>))

On the first type it threw an error about expecting parenthesis but #<eof> found. I was not able to repeat this error.

DatumReference is an internal value of the parser, and it should never be exposed.

@jcubic jcubic added the bug Something isn't working label Aug 30, 2024
@jcubic
Copy link
Owner Author

jcubic commented Sep 8, 2024

This is problematic, because the parser need to mutate the array in order to add self reference. But the & and # syntax extensions use freeze on the array/object to prevent mutation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant