mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update solidity grammar parser
This commit is contained in:
parent
d3d28e96a8
commit
f9a6da293f
@ -311,11 +311,16 @@ errorDefinition:
|
|||||||
LParen (parameters+=errorParameter (Comma parameters+=errorParameter)*)? RParen
|
LParen (parameters+=errorParameter (Comma parameters+=errorParameter)*)? RParen
|
||||||
Semicolon;
|
Semicolon;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User type operators.
|
||||||
|
*/
|
||||||
|
userOp: Add | Sub | Mul | Div | Mod | BitAnd | BitOr | BitXor | BitNot | Equal | NotEqual | LessThan | GreaterThan | LessThanOrEqual | GreaterThanOrEqual;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Using directive to bind library functions and free functions to types.
|
* Using directive to bind library functions and free functions to types.
|
||||||
* Can occur within contracts and libraries and at the file level.
|
* Can occur within contracts and libraries and at the file level.
|
||||||
*/
|
*/
|
||||||
usingDirective: Using (identifierPath | (LBrace identifierPath (Comma identifierPath)* RBrace)) For (Mul | typeName) Global? Semicolon;
|
usingDirective: Using (identifierPath (As userOp)? | (LBrace identifierPath (As userOp)? (Comma identifierPath (As userOp)?)* RBrace)) For (Mul | typeName) Global? Semicolon;
|
||||||
/**
|
/**
|
||||||
* A type name can be an elementary type, a function type, a mapping type, a user-defined type
|
* A type name can be an elementary type, a function type, a mapping type, a user-defined type
|
||||||
* (e.g. a contract or struct) or an array type.
|
* (e.g. a contract or struct) or an array type.
|
||||||
|
Loading…
Reference in New Issue
Block a user