about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-05-28 00:29:53 +0200
committerMel <mel@rnrd.eu>2026-05-28 00:29:53 +0200
commit7db79f43b431b94d525308699a87a3daeff31d92 (patch)
tree7b6a6d10dc064c5ae54791dc1b65c8d42233b97a /docs
parentec2029cba68b1d25e1e1119d37318c1b0c581a83 (diff)
downloadcatskill-7db79f43b431b94d525308699a87a3daeff31d92.tar.zst
catskill-7db79f43b431b94d525308699a87a3daeff31d92.zip
Split endless and while loops into `loop` and `while`
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'docs')
-rw-r--r--docs/grammar.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/grammar.md b/docs/grammar.md
index eee54e2..2fca56e 100644
--- a/docs/grammar.md
+++ b/docs/grammar.md
@@ -58,7 +58,7 @@ word_or_name = ident_char { ident_tail_char }
 ident_char = "A".."Z" | "a".."z" | "_"
 ident_tail_char = ident_char | "0".."9"
 
-word = "fun" | "if" | "else" | "for" | "loop"
+word = "fun" | "if" | "else" | "for" | "while" | "loop"
 	| "break" | "continue" | "defer" | "switch" | "return"
 	| "var" | "let"
 	| "type" | "variant" | "class"
@@ -120,7 +120,7 @@ statement_loop = statement_loop_for_each
 	| statement_loop_endless
 statement_loop_for_each = "for" bare_declaration block
 statement_loop_c = "for" bare_declaration "," expression "," expression block
-statement_loop_while = "loop" expression block
+statement_loop_while = "while" expression block
 statement_loop_endless = "loop" block
 
 statement_block = block