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 message literals #41

Merged
merged 4 commits into from
Oct 22, 2024
Merged

Support message literals #41

merged 4 commits into from
Oct 22, 2024

Conversation

criccomini
Copy link
Owner

I've added full support for message literals in option values. This involved adding a couple of new AST types:

  • Added MessageLiteral, MessageLiteralField, and MessageValue types.
  • Updated Option to contain either ScalaerValue or MessageLiteral

Message literals contain a list of fields. Each field has a name and a value. The value can be a scalar value (1, 2, "foo", true), or a message literal (nested). It can also be a list ([1, 2, <some message literal>]).

@criccomini criccomini merged commit d03b73a into main Oct 22, 2024
@criccomini criccomini deleted the support-message-literals branch October 22, 2024 19:44
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