about summary refs log tree commit diff
path: root/docs/grammar.md
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-05-28 00:36:13 +0200
committerMel <mel@rnrd.eu>2026-05-28 00:36:13 +0200
commit1aef923b312f2bc9c0963381eae8619c187081c6 (patch)
tree2e324f09960c31b13f72b3961fc7abaf0fa2865e /docs/grammar.md
parent7db79f43b431b94d525308699a87a3daeff31d92 (diff)
downloadcatskill-1aef923b312f2bc9c0963381eae8619c187081c6.tar.zst
catskill-1aef923b312f2bc9c0963381eae8619c187081c6.zip
Use semicolon tokens as statement separators
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'docs/grammar.md')
-rw-r--r--docs/grammar.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/grammar.md b/docs/grammar.md
index 2fca56e..18a8550 100644
--- a/docs/grammar.md
+++ b/docs/grammar.md
@@ -72,7 +72,7 @@ STRING_LITERAL = '"' { not_quote } '"'
 digit = "0".."9"
 
 # multi-character symbols are matched eagerly, e.g. "<<=" before "<<".
-symbol = "(" | ")" | "{" | "}" | "[" | "]" | ","
+symbol = "(" | ")" | "{" | "}" | "[" | "]" | "," | ";"
 	| "." | ".." | "..."
 	| "!" | "?" | "~" | "|" | "^"
 	| "+" | "-" | "*" | "/" | "%" | "&" | "="
@@ -90,7 +90,7 @@ symbol = "(" | ")" | "{" | "}" | "[" | "]" | ","
 ```ebnf
 # a translation unit is a stream of statements at the top level.
 unit = { statement statement_end }
-statement_end = NEWLINE | EOF
+statement_end = NEWLINE | ";" | EOF
 
 statement = statement_declaration
 	| statement_conditional