aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/grammar.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt
index 398f137..a3b2b7c 100644
--- a/doc/grammar.txt
+++ b/doc/grammar.txt
@@ -15,9 +15,9 @@ constant := [ COMMENT ]
[ "pub" ] "const" NAME "="
( type | bool | NUMBER | STRING* ) ";"
-block := "{" body* "}"
+block := "{" command* "}"
-body := block | control | statement
+command := block | control | statement
control := if | for