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 proto initialization #194

Merged
merged 2 commits into from
Jan 23, 2020
Merged

Conversation

crdev
Copy link
Collaborator

@crdev crdev commented Jan 23, 2020

No description provided.

@@ -821,6 +821,10 @@ private AtomExpr ::= VariableReferenceIdentifier

LiteralExpr ::= ValueLiteral
ProtobufEnum ::= PlainIdentifier (DOT PlainIdentifier)+
ProtobufLiteral ::= FunctionIdentifier PARENS_OPEN [CommaSeparatedRecordFieldValueList] PARENS_CLOSE {
pin = 2
recoverWhile = "!(PARENS_CLOSE)"
Copy link
Contributor

Choose a reason for hiding this comment

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

If there is no ), this recover expression will consume until EOF, I would simply remove it.

@@ -821,6 +821,10 @@ private AtomExpr ::= VariableReferenceIdentifier

LiteralExpr ::= ValueLiteral
ProtobufEnum ::= PlainIdentifier (DOT PlainIdentifier)+
ProtobufLiteral ::= FunctionIdentifier PARENS_OPEN [CommaSeparatedRecordFieldValueList] PARENS_CLOSE {
pin = 2
Copy link
Contributor

Choose a reason for hiding this comment

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

I am concerned that pinning like this makes it implicitly higher priority than FunctionCallExpr.

@kaathewise kaathewise merged commit 2353eef into google:master Jan 23, 2020
@crdev crdev deleted the protobuf-literal branch January 24, 2020 18:41
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