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

Invalid syntax accepted #17

Open
kiedtl opened this issue Sep 11, 2024 · 0 comments
Open

Invalid syntax accepted #17

kiedtl opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kiedtl
Copy link
Owner

kiedtl commented Sep 11, 2024

If the first element in a list is a list, that list is recursively parsed while the rest of the elements in the original list is ignored.

(((word main [])) tsdflsdf)

Not sure why this behaviour was there in the first place (in what cases would a list as the first element in a list be valid?)

Fix should be to simply only allow a keyword as first element in list. I'll have to test that nothing else depends on allowing a list to be first element however.

@kiedtl kiedtl added the bug Something isn't working label Sep 11, 2024
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