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

Array syntax causes multiple codegen issues in Python #226

Open
frame-lang opened this issue Mar 26, 2024 · 0 comments
Open

Array syntax causes multiple codegen issues in Python #226

frame-lang opened this issue Mar 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request v0.12

Comments

@frame-lang
Copy link
Owner

frame-lang commented Mar 26, 2024

This syntax causes python errors.:

    $S0
        |e| [] 
            []
            var x = []
            []
         ^ 
        

Problem 1: empty lists not in an assignment don't generate code:

[]

Additionally this is ambiguous:

        |e| [a] // [a] intended to be a list expression

Explore optional braces around an event handler to separate the parameter list from a list expression:

    $S0
        |e|  {
            [a]
         ^ }
        
@frame-lang frame-lang added enhancement New feature or request v0.12 labels Mar 26, 2024
@frame-lang frame-lang self-assigned this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v0.12
Projects
None yet
Development

No branches or pull requests

1 participant