aboutsummaryrefslogtreecommitdiffstats
path: root/docs/yul.rst
diff options
context:
space:
mode:
authorLeo Arias <yo@elopio.net>2018-09-10 13:51:51 +0800
committerLeo Arias <yo@elopio.net>2018-09-11 09:27:47 +0800
commitd33a99799df538c4d68346c241d93d17cfecfb43 (patch)
tree6cac33563b4a0b17234da4342ff6b7735fc038c1 /docs/yul.rst
parentd66e956ac20e2883cd389e8a6732c6f0912d158e (diff)
downloaddexon-solidity-d33a99799df538c4d68346c241d93d17cfecfb43.tar.gz
dexon-solidity-d33a99799df538c4d68346c241d93d17cfecfb43.tar.zst
dexon-solidity-d33a99799df538c4d68346c241d93d17cfecfb43.zip
On a yul switch, at least one case is required when there is no default statement
Diffstat (limited to 'docs/yul.rst')
-rw-r--r--docs/yul.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/yul.rst b/docs/yul.rst
index 87fd95eb..e010a708 100644
--- a/docs/yul.rst
+++ b/docs/yul.rst
@@ -99,9 +99,11 @@ Grammar::
If =
'if' Expression Block
Switch =
- 'switch' Expression Case* ( 'default' Block )?
+ 'switch' Expression ( Case+ Default? | Default )
Case =
'case' Literal Block
+ Default =
+ 'default' Block
ForLoop =
'for' Block Expression Block Block
BreakContinue =