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

Add match expressions #59

Open
4 tasks
slightknack opened this issue Aug 27, 2021 · 2 comments
Open
4 tasks

Add match expressions #59

slightknack opened this issue Aug 27, 2021 · 2 comments
Assignees
Labels
feature Features that add something new to the language

Comments

@slightknack
Copy link
Member

Course of action:

  • Add match keyword to the lexer
  • Add match keyword to the parse tree
  • Implement pass to expand match arms into decision trees
  • Reduce decicion trees to constructs present in the language core

Here are some papers that might help with the third step. There was this really good gist or issue that explained the algorithm in detail, but I can't seem to find it.

@acorrenson
Copy link

Hello 👋

Just a short comment to let you know that there is ongoing work on match statements here ;)

It's going to take a lot of time, but I thought it could be worth mentioning ^^

@slightknack
Copy link
Member Author

Cool! Let me know if you run into any roadblocks that you need me to resolve :)

@slightknack slightknack added the feature Features that add something new to the language label Oct 8, 2021
@slightknack slightknack changed the title Add match statements Add match expressions Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features that add something new to the language
Projects
None yet
Development

No branches or pull requests

2 participants