aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/parser/lux/data/format/xml.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/parser/lux/data/format/xml.lux18
1 files changed, 9 insertions, 9 deletions
diff --git a/stdlib/source/parser/lux/data/format/xml.lux b/stdlib/source/parser/lux/data/format/xml.lux
index 44cfa8fdd..70376d2c6 100644
--- a/stdlib/source/parser/lux/data/format/xml.lux
+++ b/stdlib/source/parser/lux/data/format/xml.lux
@@ -6,7 +6,7 @@
[control
["//" parser]
["[0]" try (.only Try) (.use "[1]#[0]" functor)]
- ["[0]" exception (.only exception:)]]
+ ["[0]" exception (.only exception)]]
[data
["[0]" text
["%" \\format (.only format)]]
@@ -21,22 +21,22 @@
(type .public (Parser a)
(//.Parser [Attrs (List XML)] a))
-(exception: .public empty_input)
-(exception: .public unexpected_input)
+(exception .public empty_input)
+(exception .public unexpected_input)
-(exception: .public (wrong_tag [expected Tag
- actual Tag])
+(exception .public (wrong_tag [expected Tag
+ actual Tag])
(exception.report
"Expected" (%.text (/.tag expected))
"Actual" (%.text (/.tag actual))))
-(exception: .public (unknown_attribute [expected Attribute
- available (List Attribute)])
+(exception .public (unknown_attribute [expected Attribute
+ available (List Attribute)])
(exception.report
"Expected" (%.text (/.attribute expected))
"Available" (exception.listing (|>> /.attribute %.text) available)))
-(exception: .public (unconsumed_inputs [inputs (List XML)])
+(exception .public (unconsumed_inputs [inputs (List XML)])
(exception.report
"Inputs" (exception.listing (at /.codec encoded) inputs)))
@@ -124,7 +124,7 @@
{.#Item head tail}
{try.#Success [[attrs tail] head]})))
-(exception: .public nowhere)
+(exception .public nowhere)
(def .public (somewhere parser)
(All (_ a) (-> (Parser a) (Parser a)))