mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Yul grammar changes.
- also the top level object needs to be named - code is not optional
This commit is contained in:
parent
5e55cb1729
commit
cb9816f7d6
@ -559,8 +559,7 @@ regular strings in native encoding. For code,
|
|||||||
|
|
||||||
Grammar::
|
Grammar::
|
||||||
|
|
||||||
TopLevelObject = 'object' '{' Code? ( Object | Data )* '}'
|
Object = 'object' StringLiteral '{' Code ( Object | Data )* '}'
|
||||||
Object = 'object' StringLiteral '{' Code? ( Object | Data )* '}'
|
|
||||||
Code = 'code' Block
|
Code = 'code' Block
|
||||||
Data = 'data' StringLiteral ( HexLiteral | StringLiteral )
|
Data = 'data' StringLiteral ( HexLiteral | StringLiteral )
|
||||||
HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'')
|
HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'')
|
||||||
|
Loading…
Reference in New Issue
Block a user