aboutsummaryrefslogtreecommitdiffstats
path: root/docs/grammar.txt
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-01-03 17:36:16 +0800
committerGitHub <noreply@github.com>2017-01-03 17:36:16 +0800
commit50c1cfa348fab97c8d5f18303776fc82c88f657d (patch)
treeef84bbf196832c9445e877d6fbf006bafc59329f /docs/grammar.txt
parenta45fdf4a0fa6fc79101648900503d62c8b37fe92 (diff)
parent82b9797428ce3bed3e7c8864ae183bd0432bd644 (diff)
downloaddexon-solidity-50c1cfa348fab97c8d5f18303776fc82c88f657d.tar.gz
dexon-solidity-50c1cfa348fab97c8d5f18303776fc82c88f657d.tar.zst
dexon-solidity-50c1cfa348fab97c8d5f18303776fc82c88f657d.zip
Merge pull request #1527 from federicobond/elementarytypenameconversion
Add ElementaryTypeNameExpression to grammar.txt
Diffstat (limited to 'docs/grammar.txt')
-rw-r--r--docs/grammar.txt9
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