From cb9816f7d69a8b0f877cb60a0201279e9d50135b Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 28 Nov 2018 11:32:05 +0100 Subject: Yul grammar changes. - also the top level object needs to be named - code is not optional --- docs/yul.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/yul.rst b/docs/yul.rst index 2784078c..9e50f126 100644 --- a/docs/yul.rst +++ b/docs/yul.rst @@ -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})* '\'') -- cgit v1.2.3