Skip to content

Commit 2524a46

Browse files
rvolosatovslukewagner
authored andcommitted
represent byte length using ||v|| notation
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 71b8142 commit 2524a46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

design/mvp/Binary.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ Notes:
355355
(See [Value Definitions](Explainer.md#value-definitions) in the explainer.)
356356

357357
```ebnf
358-
value ::= t:<valtype> len:<uN> v:<val(t)> => (value t v) (where len = |v+|)
358+
value ::= t:<valtype> len:<uN> v:<val(t)> => (value t v) (where len = ||v||)
359359
val(bool) ::= 0x00 => false
360360
| 0x01 => true
361361
val(u8) ::= v:<core:byte> => v
@@ -407,6 +407,7 @@ Notes:
407407
- [`core:f64`]
408408
* `&` operator is used to denote bitwise AND operation, which performs AND on every bit of two numbers in their binary form
409409
* `isnan` is a function, which takes a floating point number as a parameter and returns `true` iff it represents a NaN as defined in [IEEE 754 standard]
410+
* `||B||` is the length of the byte sequence generated from the production `B` in a derivation as defined in [Core convention auxilary notation]
410411

411412
## Name Section
412413

@@ -461,3 +462,4 @@ named once.
461462
[module-linking]: https://github.com/WebAssembly/module-linking/blob/main/proposals/module-linking/Explainer.md
462463

463464
[IEEE 754 standard]: https://ieeexplore.ieee.org/document/8766229
465+
[Core convention auxilary notation]: https://webassembly.github.io/spec/core/binary/conventions.html#auxiliary-notation

0 commit comments

Comments
 (0)