> For the complete documentation index, see [llms.txt](https://aup.nomi.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aup.nomi.dev/the-language/grammar/statements.md).

# Statements

## Block statement

```go
blockStmt := '{' decl* '}'
```

A block is a list of declarations, so you can declare variables in side this statement. We put it between two curly braces.

## Return statement

```go
returnStmt := 'return' ( '\n' | expr )
```

If a newline occurs after "return", that means the function returns none. Otherwise, requires an expression.

## While statement

```go
whileStmt := 'while' expr blockStmt
```
