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

Feature/field inits #8

Merged
merged 5 commits into from
Aug 24, 2023
Merged

Feature/field inits #8

merged 5 commits into from
Aug 24, 2023

Conversation

hardbyte
Copy link
Owner

@hardbyte hardbyte commented Aug 21, 2023

Parses FieldInit expressions e.g. Account{user_id: 'Pokemon'}.

Nested identifiers (such as a.b.c{f: []}) are supported and will be parsed into the following AST: Member(Member(Member(Ident("a"), Attribute("b")), Attribute("c")), Fields([("f", List([]))])).

Or visually:

image

@hardbyte hardbyte marked this pull request as ready for review August 23, 2023 23:37
@hardbyte hardbyte merged commit 0f6a37c into main Aug 24, 2023
@hardbyte hardbyte deleted the feature/field-inits branch August 24, 2023 01:17
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.

1 participant