Yul grammar: allow multiple $ signs (matches Solidity)

This commit is contained in:
Alex Beregszaszi 2018-08-07 22:16:22 +01:00
parent 4dc3335cda
commit a99347e9f0

View File

@ -108,7 +108,7 @@ Grammar::
'break' | 'continue' 'break' | 'continue'
FunctionCall = FunctionCall =
Identifier '(' ( Expression ( ',' Expression )* )? ')' Identifier '(' ( Expression ( ',' Expression )* )? ')'
Identifier = [a-zA-Z_$] [a-zA-Z_0-9]* Identifier = [a-zA-Z_$] [a-zA-Z_$0-9]*
IdentifierList = Identifier ( ',' Identifier)* IdentifierList = Identifier ( ',' Identifier)*
TypeName = Identifier | BuiltinTypeName TypeName = Identifier | BuiltinTypeName
BuiltinTypeName = 'bool' | [us] ( '8' | '32' | '64' | '128' | '256' ) BuiltinTypeName = 'bool' | [us] ( '8' | '32' | '64' | '128' | '256' )