Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions AstSemantics.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,15 @@ function that returns multiple values will likely have to be a statement that
specifies multiple local variables to which to assign the corresponding return
values.

## Literals
## Immediates

Each local type allows literal values directly in the AST. See the
[binary encoding section](BinaryEncoding.md#constant-pool).
Each local type allows immediate values directly in the AST. All possible
values of all types are supported.

* `i32.imm`: i32 immediate
* `i64.imm`: i64 immediate
* `f32.imm`: f32 immediate
* `f64.imm`: f64 immediate

## Expressions with control flow

Expand Down