aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-28 18:32:05 +0800
committerchriseth <chris@ethereum.org>2018-11-28 18:32:05 +0800
commitcb9816f7d69a8b0f877cb60a0201279e9d50135b (patch)
tree8edcd18af31234eb798c3674cfb7b0497c940c05
parent5e55cb17299e1c8f9a685637703e9bd956cfc826 (diff)
downloaddexon-solidity-cb9816f7d69a8b0f877cb60a0201279e9d50135b.tar.gz
dexon-solidity-cb9816f7d69a8b0f877cb60a0201279e9d50135b.tar.zst
dexon-solidity-cb9816f7d69a8b0f877cb60a0201279e9d50135b.zip
Yul grammar changes.
- also the top level object needs to be named - code is not optional
-rw-r--r--docs/yul.rst3
1 files changed, 1 insertions, 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})* '\'')