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

Support a shorthand syntax for match-expressions and other block-based syntax #50

Open
samvv opened this issue Jun 12, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request lexer/parser All issues having something to do with reading tokens into an AST priority:low If possible, oher issues should be taken care of first

Comments

@samvv
Copy link
Collaborator

samvv commented Jun 12, 2023

We'd like to do something like (pseudo-syntax):

let x = match y. True => 1; False => 0
let i = 0; i += 1; print i

After a first look it appears that LineFoldEnd and ; might be made interchangeable, with some tweaks here and there.

@samvv samvv added enhancement New feature or request priority:low If possible, oher issues should be taken care of first lexer/parser All issues having something to do with reading tokens into an AST labels Jun 12, 2023
@samvv samvv self-assigned this Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lexer/parser All issues having something to do with reading tokens into an AST priority:low If possible, oher issues should be taken care of first
Projects
None yet
Development

No branches or pull requests

1 participant