You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val((flags l+)) ::= (v:<core:byte>)^N => (flags (l[i] for i in 0..N-1 if v & 2^i > 0)) (where N = ceil(|l+| / 8))
381
+
val((enum l+)) ::= i:<core:u32> => (enum l[i])
382
+
val((option t)) ::= 0x00 => none
383
+
| 0x01 v:<val(t)> => (some v)
384
+
val((result)) ::= 0x00 => ok
385
+
| 0x01 => error
386
+
val((result t)) ::= 0x00 v:<val(t)> => (ok v)
387
+
| 0x01 => error
388
+
val((result (error u))) ::= 0x00 => ok
389
+
| 0x01 v:<val(u)> => (error v)
390
+
val((result t (error u))) ::= 0x00 v:<val(t)> => (ok v)
391
+
| 0x01 v:<val(u)> => (error v)
398
392
```
399
393
400
394
Notes:
@@ -411,9 +405,7 @@ Notes:
411
405
-[`core:uN`]
412
406
-[`core:f32`]
413
407
-[`core:f64`]
414
-
*`|` operator is used to denote bitwise OR operation, which performs OR on every bit of two numbers in their binary form
415
408
*`&` operator is used to denote bitwise AND operation, which performs AND on every bit of two numbers in their binary form
416
-
*`<<` operator is used to denote a bitwise left shift operation, which appends `0` at LSB position
417
409
*`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]
418
410
*`||B||` is the length of the byte sequence generated from the production `B` in a derivation as defined in [Core convention auxilary notation]
0 commit comments