Yul grammar changes.

- also the top level object needs to be named
 - code is not optional
This commit is contained in:
chriseth 2018-11-28 11:32:05 +01:00
parent 5e55cb1729
commit cb9816f7d6

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})* '\'')