Skip to content

Commit 4a953fa

Browse files
rvolosatovslukewagner
authored andcommitted
introduce f64canon rule
#336 (comment) Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 25130f6 commit 4a953fa

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
@@ -1362,20 +1362,21 @@ once at instantiation-time (i.e., they are [linear]).
13621362
Components may define values in the value index space using following syntax:
13631363

13641364
```ebnf
1365-
value ::= (value <id>? <valtype> <val>)
1366-
val ::= false | true
1367-
| <core:i64>
1368-
| <core:f64> | NaN
1369-
| '<core:char>'
1370-
| <core:name>
1371-
| (record <val>+)
1372-
| (variant "<label>" <val>?)
1373-
| (list <val>*)
1374-
| (tuple <val>+)
1375-
| (flags "<label>"*)
1376-
| (enum "<label>")
1377-
| none | (some <val>)
1378-
| ok | (ok <val>) | error | (error <val>)
1365+
value ::= (value <id>? <valtype> <val>)
1366+
val ::= false | true
1367+
| <core:i64>
1368+
| <f64canon>
1369+
| '<core:char>'
1370+
| <core:name>
1371+
| (record <val>+)
1372+
| (variant "<label>" <val>?)
1373+
| (list <val>*)
1374+
| (tuple <val>+)
1375+
| (flags "<label>"*)
1376+
| (enum "<label>")
1377+
| none | (some <val>)
1378+
| ok | (ok <val>) | error | (error <val>)
1379+
f64canon ::= <core:f64> without the `nan:0x` case.
13791380
```
13801381

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

0 commit comments

Comments
 (0)