diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 07:08:08 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 07:08:08 +0800 |
commit | 258e8caa59d1aed5913c73bc49af957e9dd3a5ec (patch) | |
tree | d003a84c726d04c647a2654b4181e8c527083beb | |
parent | ed4022fbca92f5c2dc4bc5a6a7e58db9f040c07d (diff) | |
download | dexon-solidity-258e8caa59d1aed5913c73bc49af957e9dd3a5ec.tar dexon-solidity-258e8caa59d1aed5913c73bc49af957e9dd3a5ec.tar.gz dexon-solidity-258e8caa59d1aed5913c73bc49af957e9dd3a5ec.tar.bz2 dexon-solidity-258e8caa59d1aed5913c73bc49af957e9dd3a5ec.tar.lz dexon-solidity-258e8caa59d1aed5913c73bc49af957e9dd3a5ec.tar.xz dexon-solidity-258e8caa59d1aed5913c73bc49af957e9dd3a5ec.tar.zst dexon-solidity-258e8caa59d1aed5913c73bc49af957e9dd3a5ec.zip |
grammar: introduce AssemblyExpression and use it in Assignment/LocalBinding
-rw-r--r-- | docs/grammar.txt | 5 |
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 )* ')' |