cli: disambiguate block statement boundaries

This commit is contained in:
dev committed 2026-10-07 18:21:07 +03:00
1 parent 462ddd2c5c
commit 911982dd1c
33 files changed
+465 -7

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ effects [io.read, io.write]
- `main`'s parameters are capabilities, granted by name: `aji run --grant input=io.read --grant out=io.write --stdin 'hi' main.aji`.
- Every function lists its effects after the signature. A missing effect is `E3101`, whose `suggested_effects` field is the full list to write.
- Statements end with `;`; `if`/`while`/`for`/`loop`/`match`/`select`/`scope`/`shield`/`lock` blocks do not.
- Statements end with `;`; block statements do not require one. A bare `if`, `match` or `{…}` at statement/tail start ends at its final `}`. Parenthesize it to continue with an operator. Before another statement it must yield `void` or diverge; use `;` to explicitly discard a value (`E7006` otherwise). Initializers, returns and arguments use ordinary expression parsing.
## 2. Types