mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #14128 from mdehoog/golang-generation
Fix incompatibilities with Golang parser generation
This commit is contained in:
commit
02e936ad82
@ -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
|
||||||
| (
|
| (
|
||||||
|
Loading…
Reference in New Issue
Block a user