Skip to content

Commit a60a21e

Browse files
rvolosatovslukewagner
authored andcommitted
sync text format with value binary encoding changes
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent 8262cb8 commit a60a21e

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

design/mvp/Explainer.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,8 +1364,18 @@ Components may define values in the value index space using following syntax:
13641364
```ebnf
13651365
value ::= (value <id>? <valtype> <val>)
13661366
val ::= false | true
1367-
| <core:i64>
1368-
| <f64canon>
1367+
| (u8 <core:u8>)
1368+
| (u16 <core:u16>)
1369+
| (u32 <core:u32>)
1370+
| (u64 <core:u64>)
1371+
| (s8 <core:s8>)
1372+
| (s16 <core:s16>)
1373+
| (s32 <core:s32>)
1374+
| (s64 <core:s64>)
1375+
| (f32 <f32canon>)
1376+
| (f32 nan)
1377+
| (f64 <f64canon>)
1378+
| (f64 nan)
13691379
| '<core:char>'
13701380
| <core:name>
13711381
| (record <val>+)
@@ -1376,6 +1386,7 @@ val ::= false | true
13761386
| (enum "<label>")
13771387
| none | (some <val>)
13781388
| ok | (ok <val>) | error | (error <val>)
1389+
f32canon ::= <core:f32> without the `nan:0x` case.
13791390
f64canon ::= <core:f64> without the `nan:0x` case.
13801391
```
13811392

0 commit comments

Comments
 (0)