aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/parser/lux/data/binary.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/parser/lux/data/binary.lux')
-rw-r--r--stdlib/source/parser/lux/data/binary.lux20
1 files changed, 10 insertions, 10 deletions
diff --git a/stdlib/source/parser/lux/data/binary.lux b/stdlib/source/parser/lux/data/binary.lux
index 3539323c5..1e1ac7704 100644
--- a/stdlib/source/parser/lux/data/binary.lux
+++ b/stdlib/source/parser/lux/data/binary.lux
@@ -9,7 +9,7 @@
[control
["//" parser (.use "[1]#[0]" monad)]
["[0]" try (.only Try)]
- ["[0]" exception (.only exception:)]]
+ ["[0]" exception (.only exception)]]
[data
["/" binary
["[1]" \\unsafe (.only Binary)]]
@@ -37,8 +37,8 @@
(.type .public Parser
(//.Parser [Offset Binary]))
-(exception: .public (binary_was_not_fully_read [binary_length Nat
- bytes_read Nat])
+(exception .public (binary_was_not_fully_read [binary_length Nat
+ bytes_read Nat])
(exception.report
"Binary length" (%.nat binary_length)
"Bytes read" (%.nat bytes_read)))
@@ -88,9 +88,9 @@
(def .public size_32 Size (n.* 2 size_16))
(def .public size_64 Size (n.* 2 size_32))
-(exception: .public (range_out_of_bounds [length Nat
- start Nat
- end Nat])
+(exception .public (range_out_of_bounds [length Nat
+ start Nat
+ end Nat])
(exception.report
"Length" (%.nat length)
"Range start" (%.nat start)
@@ -125,8 +125,8 @@
(Parser Frac)
(//#each frac.of_bits ..bits_64))
-(exception: .public (invalid_tag [range Nat
- byte Nat])
+(exception .public (invalid_tag [range Nat
+ byte Nat])
(exception.report
"Tag range" (%.nat range)
"Tag value" (%.nat byte)))
@@ -159,7 +159,7 @@
(Parser Any)
(//#in []))
-(exception: .public (not_a_bit [value Nat])
+(exception .public (not_a_bit [value Nat])
(exception.report
"Expected values" "either 0 or 1"
"Actual value" (%.nat value)))
@@ -250,7 +250,7 @@
(|>> (//.and value)
(..or ..any))))
-(exception: .public set_elements_are_not_unique)
+(exception .public set_elements_are_not_unique)
(def .public (set hash value)
(All (_ a) (-> (Hash a) (Parser a) (Parser (Set a))))