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))
384
+
val((enum l+)) ::= i:<core:u32> => (enum l[i])
385
+
val((option t)) ::= 0x00 => none
386
+
| 0x01 v:<val(t)> => (some v)
387
+
val((result)) ::= 0x00 => ok
388
+
| 0x01 => error
389
+
val((result t)) ::= 0x00 v:<val(t)> => (ok v)
390
+
| 0x01 => error
391
+
val((result (error u))) ::= 0x00 => ok
392
+
| 0x01 v:<val(u)> => (error v)
393
+
val((result t (error u))) ::= 0x00 v:<val(t)> => (ok v)
394
+
| 0x01 v:<val(u)> => (error v)
401
395
```
402
396
403
397
Notes:
@@ -414,9 +408,7 @@ Notes:
414
408
-[`core:uN`]
415
409
-[`core:f32`]
416
410
-[`core:f64`]
417
-
*`|` operator is used to denote bitwise OR operation, which performs OR on every bit of two numbers in their binary form
418
411
*`&` operator is used to denote bitwise AND operation, which performs AND on every bit of two numbers in their binary form
419
-
*`<<` operator is used to denote a bitwise left shift operation, which appends `0` at LSB position
420
412
*`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]
421
413
*`||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