-
Notifications
You must be signed in to change notification settings - Fork 150
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
Structs: Add support for structs to the Lexer
, Parser
, and Weeder
#7924
Comments
Lexer
, Parser
, and Weeder
@dghosef I suggest that the first PR should simply be to add a new |
@dghosef I added some more examples to the ticket. |
@magnus-madsen I run into the problem that now since Weeder technically can return a struct, the desugar pattern matching is incomplete. Is there a way to temporarily silence this error? My current solution is to just throw an exception in the desugar phase upon matching with a struct
Oh sorry I just saw this. Should I revert the other stuff I've done and make a smaller PR? I have put all the stuff I have done in a bigger draft PR here: #7927 |
I suggest to work one phase at a time, just so everyone can keep up. The lexer PR should be easy 👍 |
You have to throw an exception which is OK |
Syntax Example I:
Syntax Example II:
Syntax Example III:
Syntax Example IV:
We should discuss the data types in WeededAst. I would propose something like:
The text was updated successfully, but these errors were encountered: