mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
grammar: introduce AssemblyExpression and use it in Assignment/LocalBinding
This commit is contained in:
parent
ed4022fbca
commit
258e8caa59
@ -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 )* ')'
|
||||
|
Loading…
Reference in New Issue
Block a user