Skip to content

Commit

Permalink
Block can have 0 statement
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Sep 10, 2019
1 parent 49a6206 commit 6b7f536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/syntax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Formal Specification
&\ \ \ |\ \ \mathrm{require}(expr);\\
&\ \ \ |\ \ \mathrm{if}\ (expr)\ stmt\ [\mathrm{else}\ stmt]\\
&\ \ \ |\ \ \mathrm{loop}\ (intConst)\ stmt\\
&\ \ \ |\ \ \{\ [stmt]^+\ \}\\
&\ \ \ |\ \ \{\ [stmt]^*\ \}\\
expr &::= \mathsf{UnaryOp}\ expr\\
&\ \ \ |\ \ expr\ \mathsf{BinaryOp}\ expr\\
&\ \ \ |\ \ \mathrm{ID}(expr[,\ expr]^*)\\
Expand Down

0 comments on commit 6b7f536

Please sign in to comment.