diff options
author | Federico Bond <federicobond@gmail.com> | 2016-12-28 03:10:09 +0800 |
---|---|---|
committer | Federico Bond <federicobond@gmail.com> | 2017-01-02 22:45:12 +0800 |
commit | 82b9797428ce3bed3e7c8864ae183bd0432bd644 (patch) | |
tree | 7087a16248ea79bb56a6966e6b0b92597428eb99 /docs/grammar.txt | |
parent | eafd852a766645da0cb466bff681b9bbb1d6da00 (diff) | |
download | dexon-solidity-82b9797428ce3bed3e7c8864ae183bd0432bd644.tar.gz dexon-solidity-82b9797428ce3bed3e7c8864ae183bd0432bd644.tar.zst dexon-solidity-82b9797428ce3bed3e7c8864ae183bd0432bd644.zip |
Add ElementaryTypeNameExpression to grammar.txt
Diffstat (limited to 'docs/grammar.txt')
-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 c9f7f448..1dbd620a 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -82,7 +82,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 @@ -100,6 +105,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 |