Merge pull request #14128 from mdehoog/golang-generation

Fix incompatibilities with Golang parser generation
This commit is contained in:
Daniel 2023-04-17 20:26:41 +02:00 committed by GitHub
commit 02e936ad82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -378,7 +378,7 @@ dataLocation: Memory | Storage | Calldata;
*/ */
expression: expression:
expression LBrack index=expression? RBrack # IndexAccess expression LBrack index=expression? RBrack # IndexAccess
| expression LBrack start=expression? Colon end=expression? RBrack # IndexRangeAccess | expression LBrack startIndex=expression? Colon endIndex=expression? RBrack # IndexRangeAccess
| expression Period (identifier | Address) # MemberAccess | expression Period (identifier | Address) # MemberAccess
| expression LBrace (namedArgument (Comma namedArgument)*)? RBrace # FunctionCallOptions | expression LBrace (namedArgument (Comma namedArgument)*)? RBrace # FunctionCallOptions
| expression callArgumentList # FunctionCall | expression callArgumentList # FunctionCall
@ -399,7 +399,7 @@ expression:
| expression Or expression # OrOperation | expression Or expression # OrOperation
|<assoc=right> expression Conditional expression Colon expression # Conditional |<assoc=right> expression Conditional expression Colon expression # Conditional
|<assoc=right> expression assignOp expression # Assignment |<assoc=right> expression assignOp expression # Assignment
| New typeName # NewExpression | New typeName # NewExpr
| tupleExpression # Tuple | tupleExpression # Tuple
| inlineArrayExpression # InlineArray | inlineArrayExpression # InlineArray
| ( | (