From 5708008aac93ec883821a5afd1f40b02367b0345 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 28 Sep 2015 20:08:28 -0700 Subject: [PATCH] Rename "Literals" to "Immediates" and spell out operators. "Immediate" is the more common term to use in assembly languages. Also, remove a broken link to the binary encoding page. The binary encoding is not yet determined, but AstSemantics.md doesn't need to reference it right now anyway. --- AstSemantics.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/AstSemantics.md b/AstSemantics.md index 35e93951..c5bad128 100644 --- a/AstSemantics.md +++ b/AstSemantics.md @@ -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