diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/grammar.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt index 8d04f2c2..b5d2b780 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -90,7 +90,12 @@ Expression = | Expression? (',' Expression) | PrimaryExpression -PrimaryExpression = Identifier | BooleanLiteral | NumberLiteral | HexLiteral | StringLiteral +PrimaryExpression = Identifier + | BooleanLiteral + | NumberLiteral + | HexLiteral + | StringLiteral + | ElementaryTypeNameExpression FunctionCall = ( PrimaryExpression | NewExpression | TypeName ) ( ( '.' Identifier ) | ( '[' Expression ']' ) )* '(' Expression? ( ',' Expression )* ')' NewExpression = 'new' Identifier @@ -108,6 +113,8 @@ Identifier = [a-zA-Z_] [a-zA-Z_0-9]* HexNumber = '0x' [0-9a-fA-F]+ DecimalNumber = [0-9]+ +ElementaryTypeNameExpression = ElementaryTypeName + ElementaryTypeName = 'address' | 'bool' | 'string' | 'var' | Int | Uint | Byte | Fixed | Ufixed |