Skip to content

Commit dc2859f

Browse files
committed
represent byte length using ||v|| notation
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent b58579e commit dc2859f

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
@@ -358,7 +358,7 @@ Notes:
358358
(See [Value Definitions](Explainer.md#value-definitions) in the explainer.)
359359

360360
```ebnf
361-
value ::= t:<valtype> len:<uN> v:<val(t)> => (value t v) (where len = |v+|)
361+
value ::= t:<valtype> len:<uN> v:<val(t)> => (value t v) (where len = ||v||)
362362
val(bool) ::= 0x00 => false
363363
| 0x01 => true
364364
val(u8) ::= v:<core:byte> => v
@@ -410,6 +410,7 @@ Notes:
410410
- [`core:f64`]
411411
* `&` operator is used to denote bitwise AND operation, which performs AND on every bit of two numbers in their binary form
412412
* `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]
413+
* `||B||` is the length of the byte sequence generated from the production `B` in a derivation as defined in [Core convention auxilary notation]
413414

414415
## Name Section
415416

@@ -464,3 +465,4 @@ named once.
464465
[module-linking]: https://github.com/WebAssembly/module-linking/blob/main/proposals/module-linking/Explainer.md
465466

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

0 commit comments

Comments
 (0)