aboutsummaryrefslogtreecommitdiffstats
path: root/docs/grammar.txt
diff options
context:
space:
mode:
authorFederico Bond <federicobond@gmail.com>2017-06-15 09:59:58 +0800
committerFederico Bond <federicobond@gmail.com>2017-06-23 00:55:08 +0800
commit9fc4c877d35f87d6efef6ca9143d196c9cfb9f7f (patch)
treea6a441d21bab7892051da018a8890031f6820a11 /docs/grammar.txt
parentf0f1e5abfa21e97253bbc9d3e9791c8f4a956d06 (diff)
downloaddexon-solidity-9fc4c877d35f87d6efef6ca9143d196c9cfb9f7f.tar.gz
dexon-solidity-9fc4c877d35f87d6efef6ca9143d196c9cfb9f7f.tar.zst
dexon-solidity-9fc4c877d35f87d6efef6ca9143d196c9cfb9f7f.zip
Fix and improve grammar.txt
Diffstat (limited to 'docs/grammar.txt')
-rw-r--r--docs/grammar.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index da9e27d6..6c041460 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -77,10 +77,11 @@ IdentifierList = '(' ( Identifier? ',' )* Identifier? ')'
// Precedence by order (see github.com/ethereum/solidity/pull/732)
Expression
= Expression ('++' | '--')
- | FunctionCall
| NewExpression
- | MemberAccess
| IndexAccess
+ | MemberAccess
+ | FunctionCall
+ | '(' Expression ')'
| ('!' | '~' | 'delete' | '++' | '--' | '+' | '-') Expression
| Expression '**' Expression
| Expression ('*' | '/' | '%') Expression
@@ -97,12 +98,12 @@ Expression
| Expression ('=' | '|=' | '^=' | '&=' | '<<=' | '>>=' | '+=' | '-=' | '*=' | '/=' | '%=') Expression
| PrimaryExpression
-PrimaryExpression = Identifier
- | BooleanLiteral
+PrimaryExpression = BooleanLiteral
| NumberLiteral
| HexLiteral
| StringLiteral
| TupleExpression
+ | Identifier
| ElementaryTypeNameExpression
ExpressionList = Expression ( ',' Expression )*