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 named constructor parsing #164

Merged
merged 2 commits into from
Sep 2, 2023

Conversation

nrabulinski
Copy link
Contributor

Addresses the parsing part of #163.
I recommend looking only at the second commit, the first is just noise. Feel free to cherry-pick only the second one. I included it because rustfmt is automatically applied for me.

I tried to cover all the edge cases in examples/parsing/named_constructor.an but if I missed or misunderstood something feel free to point it out.

Copy link
Owner

@jfecher jfecher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good start! I'd eventually like to be able to parse more expressions then just function arguments in the rhs of the = of each field, but I can see how this would be difficult with the expression parser trying to parse commas as tuples normally.

Thanks for the PR!

@jfecher jfecher merged commit 48fda36 into jfecher:master Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants