aboutsummaryrefslogtreecommitdiffstats
path: root/docs/grammar.txt
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-07-25 07:08:08 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-07-25 07:08:08 +0800
commit258e8caa59d1aed5913c73bc49af957e9dd3a5ec (patch)
treed003a84c726d04c647a2654b4181e8c527083beb /docs/grammar.txt
parented4022fbca92f5c2dc4bc5a6a7e58db9f040c07d (diff)
downloaddexon-solidity-258e8caa59d1aed5913c73bc49af957e9dd3a5ec.tar.gz
dexon-solidity-258e8caa59d1aed5913c73bc49af957e9dd3a5ec.tar.zst
dexon-solidity-258e8caa59d1aed5913c73bc49af957e9dd3a5ec.zip
grammar: introduce AssemblyExpression and use it in Assignment/LocalBinding
Diffstat (limited to 'docs/grammar.txt')
-rw-r--r--docs/grammar.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index 082ba525..42467b6f 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -155,7 +155,8 @@ Ufixed = 'ufixed' | ( 'ufixed' [0-9]+ 'x' [0-9]+ )
InlineAssemblyBlock = '{' AssemblyItem* '}'
AssemblyItem = Identifier | FunctionalAssemblyExpression | InlineAssemblyBlock | AssemblyLocalBinding | AssemblyAssignment | AssemblyLabel | NumberLiteral | StringLiteral | HexLiteral
-AssemblyLocalBinding = 'let' Identifier ':=' FunctionalAssemblyExpression
-AssemblyAssignment = ( Identifier ':=' ( Identifier | FunctionalAssemblyExpression ) ) | ( '=:' Identifier )
+AssemblyExpression = Identifier | FunctionalAssemblyExpression | NumberLiteral | StringLiteral | HexLiteral
+AssemblyLocalBinding = 'let' Identifier ':=' AssemblyExpression
+AssemblyAssignment = ( Identifier ':=' AssemblyExpression ) | ( '=:' Identifier )
AssemblyLabel = Identifier ':'
FunctionalAssemblyExpression = Identifier '(' AssemblyItem? ( ',' AssemblyItem )* ')'