aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-07-25 07:04:27 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-07-25 07:05:19 +0800
commited4022fbca92f5c2dc4bc5a6a7e58db9f040c07d (patch)
treeb615da9604501cb44f1640695a0782c2dc642065 /docs
parentae0959ae125ac2ae7084041a87c0736a8e7df6c6 (diff)
downloaddexon-solidity-ed4022fbca92f5c2dc4bc5a6a7e58db9f040c07d.tar.gz
dexon-solidity-ed4022fbca92f5c2dc4bc5a6a7e58db9f040c07d.tar.zst
dexon-solidity-ed4022fbca92f5c2dc4bc5a6a7e58db9f040c07d.zip
grammar: support all assignment stataments in inline assembly
Diffstat (limited to 'docs')
-rw-r--r--docs/grammar.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index 7b29fc62..082ba525 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -156,6 +156,6 @@ InlineAssemblyBlock = '{' AssemblyItem* '}'
AssemblyItem = Identifier | FunctionalAssemblyExpression | InlineAssemblyBlock | AssemblyLocalBinding | AssemblyAssignment | AssemblyLabel | NumberLiteral | StringLiteral | HexLiteral
AssemblyLocalBinding = 'let' Identifier ':=' FunctionalAssemblyExpression
-AssemblyAssignment = ( Identifier ':=' FunctionalAssemblyExpression ) | ( '=:' Identifier )
+AssemblyAssignment = ( Identifier ':=' ( Identifier | FunctionalAssemblyExpression ) ) | ( '=:' Identifier )
AssemblyLabel = Identifier ':'
FunctionalAssemblyExpression = Identifier '(' AssemblyItem? ( ',' AssemblyItem )* ')'