aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-15 07:40:01 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-15 07:40:01 +0800
commit4970d89f3b4b38a447def0ce1e9c705a8a494291 (patch)
tree6ef062aaa0b198c8254b3c15976d4fd1fba25bfa
parent1ceb735fe1a996a3b469e2fa5278f49160e9f85a (diff)
downloaddexon-solidity-4970d89f3b4b38a447def0ce1e9c705a8a494291.tar.gz
dexon-solidity-4970d89f3b4b38a447def0ce1e9c705a8a494291.tar.zst
dexon-solidity-4970d89f3b4b38a447def0ce1e9c705a8a494291.zip
Support AssemblyLabel in grammar
-rw-r--r--docs/grammar.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index ee655216..c67a8a4a 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -137,7 +137,8 @@ Ufixed = 'ufixed' | 'ufixed0x8' | 'ufixed0x16' | 'ufixed0x24' | 'ufixed0x32' | '
InlineAssemblyBlock = '{' AssemblyItem* '}'
-AssemblyItem = Identifier | FunctionalAssemblyExpression | InlineAssemblyBlock | AssemblyLocalBinding | AssemblyAssignment | NumberLiteral | StringLiteral | HexLiteral
+AssemblyItem = Identifier | FunctionalAssemblyExpression | InlineAssemblyBlock | AssemblyLocalBinding | AssemblyAssignment | AssemblyLabel | NumberLiteral | StringLiteral | HexLiteral
AssemblyLocalBinding = 'let' Identifier ':=' FunctionalAssemblyExpression
AssemblyAssignment = ( Identifier ':=' FunctionalAssemblyExpression ) | ( '=:' Identifier )
+AssemblyLabel = Identifier ':'
FunctionalAssemblyExpression = Identifier '(' AssemblyItem? ( ',' AssemblyItem )* ')'