aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-30 22:54:59 +0800
committerGitHub <noreply@github.com>2018-07-30 22:54:59 +0800
commitbc13365a7b3920c361ff2ae5f1a9bb7e98ad07b2 (patch)
treed537ba6024e965b84ab364b00a55d077fd394214
parent7cf5cd6050c616599d476a865b1fcfb57472ef22 (diff)
parent582ab4eab453cd658d4904aacfad597d44573e6b (diff)
downloaddexon-solidity-bc13365a7b3920c361ff2ae5f1a9bb7e98ad07b2.tar.gz
dexon-solidity-bc13365a7b3920c361ff2ae5f1a9bb7e98ad07b2.tar.zst
dexon-solidity-bc13365a7b3920c361ff2ae5f1a9bb7e98ad07b2.zip
Merge pull request #4569 from ethereum/grammar-assembly
Update grammar.txt for inline assembly
-rw-r--r--docs/grammar.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index 7b29fc62..8e91a7d6 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -154,8 +154,9 @@ 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 ':=' FunctionalAssemblyExpression ) | ( '=:' Identifier )
+AssemblyItem = Identifier | FunctionalAssemblyExpression | InlineAssemblyBlock | AssemblyVariableDeclaration | AssemblyAssignment | AssemblyLabel | NumberLiteral | StringLiteral | HexLiteral
+AssemblyExpression = Identifier | FunctionalAssemblyExpression | NumberLiteral | StringLiteral | HexLiteral
+AssemblyVariableDeclaration = 'let' Identifier ':=' AssemblyExpression
+AssemblyAssignment = ( Identifier ':=' AssemblyExpression ) | ( '=:' Identifier )
AssemblyLabel = Identifier ':'
FunctionalAssemblyExpression = Identifier '(' AssemblyItem? ( ',' AssemblyItem )* ')'