mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1527 from federicobond/elementarytypenameconversion
Add ElementaryTypeNameExpression to grammar.txt
This commit is contained in:
commit
50c1cfa348
@ -90,7 +90,12 @@ Expression =
|
|||||||
| Expression? (',' Expression)
|
| Expression? (',' Expression)
|
||||||
| PrimaryExpression
|
| PrimaryExpression
|
||||||
|
|
||||||
PrimaryExpression = Identifier | BooleanLiteral | NumberLiteral | HexLiteral | StringLiteral
|
PrimaryExpression = Identifier
|
||||||
|
| BooleanLiteral
|
||||||
|
| NumberLiteral
|
||||||
|
| HexLiteral
|
||||||
|
| StringLiteral
|
||||||
|
| ElementaryTypeNameExpression
|
||||||
|
|
||||||
FunctionCall = ( PrimaryExpression | NewExpression | TypeName ) ( ( '.' Identifier ) | ( '[' Expression ']' ) )* '(' Expression? ( ',' Expression )* ')'
|
FunctionCall = ( PrimaryExpression | NewExpression | TypeName ) ( ( '.' Identifier ) | ( '[' Expression ']' ) )* '(' Expression? ( ',' Expression )* ')'
|
||||||
NewExpression = 'new' Identifier
|
NewExpression = 'new' Identifier
|
||||||
@ -108,6 +113,8 @@ Identifier = [a-zA-Z_] [a-zA-Z_0-9]*
|
|||||||
HexNumber = '0x' [0-9a-fA-F]+
|
HexNumber = '0x' [0-9a-fA-F]+
|
||||||
DecimalNumber = [0-9]+
|
DecimalNumber = [0-9]+
|
||||||
|
|
||||||
|
ElementaryTypeNameExpression = ElementaryTypeName
|
||||||
|
|
||||||
ElementaryTypeName = 'address' | 'bool' | 'string' | 'var'
|
ElementaryTypeName = 'address' | 'bool' | 'string' | 'var'
|
||||||
| Int | Uint | Byte | Fixed | Ufixed
|
| Int | Uint | Byte | Fixed | Ufixed
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user