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

Parser edge case: indexing string and list literals does not work #1

Open
mmastrac opened this issue Jun 27, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@mmastrac
Copy link
Owner

Indexing and function invocation only work on 'word-like' tokens at this time. This means that trying to index a string or list literal does not work:

assert("abcdef"[2] == "c");

While this is not a great pattern to use, it should compile as it might be useful in certain cases.

@mmastrac mmastrac added the bug Something isn't working label Jun 28, 2021
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