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

Standalone parenthesized expressions disallow comma-delimited expressions #70

Open
darrylabbate opened this issue Dec 25, 2023 · 0 comments
Labels
bug Something isn't working compiler Compiler/parser

Comments

@darrylabbate
Copy link
Member

Ex:

(1,2)

Not that this would be particularly useful, but it threw me off-guard when the compiler threw an error for this instead of simply evaluating and throwing away. Obviously due to the nud() function in the parser simply calling paren_expr() instead of paren_expr_list() when it encounters a ( token.

It's unclear whether all instances of paren_expr() (be mindful of use in ternary op parsing) should allow a comma-delimited list of expressions

@darrylabbate darrylabbate added bug Something isn't working compiler Compiler/parser labels Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler Compiler/parser
Projects
None yet
Development

No branches or pull requests

1 participant