Merge pull request #5524 from ethereum/yulGrammarChanges

Yul grammar changes.
This commit is contained in:
chriseth 2018-12-03 11:25:20 +01:00 committed by GitHub
commit 0d1dd30ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -559,8 +559,7 @@ regular strings in native encoding. For code,
Grammar::
TopLevelObject = 'object' '{' Code? ( Object | Data )* '}'
Object = 'object' StringLiteral '{' Code? ( Object | Data )* '}'
Object = 'object' StringLiteral '{' Code ( Object | Data )* '}'
Code = 'code' Block
Data = 'data' StringLiteral ( HexLiteral | StringLiteral )
HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'')