Skip to content

Commit 76cb955

Browse files
committed
introduce f64canon rule
#336 (comment) Signed-off-by: Roman Volosatovs <[email protected]>
1 parent d2f1335 commit 76cb955

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

design/mvp/Explainer.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,20 +1369,21 @@ once at instantiation-time (i.e., they are [linear]).
13691369
Components may define values in the value index space using following syntax:
13701370

13711371
```ebnf
1372-
value ::= (value <id>? <valtype> <val>)
1373-
val ::= false | true
1374-
| <core:i64>
1375-
| <core:f64> | NaN
1376-
| '<core:char>'
1377-
| <core:name>
1378-
| (record <val>+)
1379-
| (variant "<label>" <val>?)
1380-
| (list <val>*)
1381-
| (tuple <val>+)
1382-
| (flags "<label>"*)
1383-
| (enum "<label>")
1384-
| none | (some <val>)
1385-
| ok | (ok <val>) | error | (error <val>)
1372+
value ::= (value <id>? <valtype> <val>)
1373+
val ::= false | true
1374+
| <core:i64>
1375+
| <f64canon>
1376+
| '<core:char>'
1377+
| <core:name>
1378+
| (record <val>+)
1379+
| (variant "<label>" <val>?)
1380+
| (list <val>*)
1381+
| (tuple <val>+)
1382+
| (flags "<label>"*)
1383+
| (enum "<label>")
1384+
| none | (some <val>)
1385+
| ok | (ok <val>) | error | (error <val>)
1386+
f64canon ::= <core:f64> without the `nan:0x` case.
13861387
```
13871388

13881389
The validation rules for `value` require the `val` to match the `valtype`. For example:

0 commit comments

Comments
 (0)