aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/control/parser/json.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/control/parser/json.lux20
1 files changed, 10 insertions, 10 deletions
diff --git a/stdlib/source/library/lux/control/parser/json.lux b/stdlib/source/library/lux/control/parser/json.lux
index 0c53041b9..2e9935480 100644
--- a/stdlib/source/library/lux/control/parser/json.lux
+++ b/stdlib/source/library/lux/control/parser/json.lux
@@ -72,7 +72,7 @@
(wrap value)
_
- (//.fail (exception.construct ..unexpected_value [head])))))]
+ (//.failure (exception.construct ..unexpected_value [head])))))]
[null /.Null #/.Null "null"]
[boolean /.Boolean #/.Boolean "boolean"]
@@ -96,7 +96,7 @@
(wrap (\ <equivalence> = test value))
_
- (//.fail (exception.construct ..unexpected_value [head])))))
+ (//.failure (exception.construct ..unexpected_value [head])))))
(def: #export (<check> test)
{#.doc (code.text ($_ text\compose "Ensures a JSON value is a " <desc> "."))}
@@ -107,10 +107,10 @@
(<tag> value)
(if (\ <equivalence> = test value)
(wrap [])
- (//.fail (exception.construct ..value_mismatch [(<tag> test) (<tag> value)])))
+ (//.failure (exception.construct ..value_mismatch [(<tag> test) (<tag> value)])))
_
- (//.fail (exception.construct ..unexpected_value [head])))))]
+ (//.failure (exception.construct ..unexpected_value [head])))))]
[boolean? boolean! /.Boolean bit.equivalence #/.Boolean "boolean"]
[number? number! /.Number frac.equivalence #/.Number "number"]
@@ -131,7 +131,7 @@
(#/.Array values)
(case (//.run parser (row.to_list values))
(#try.Failure error)
- (//.fail error)
+ (//.failure error)
(#try.Success [remainder output])
(case remainder
@@ -139,10 +139,10 @@
(wrap output)
_
- (//.fail (exception.construct ..unconsumed_input remainder))))
+ (//.failure (exception.construct ..unconsumed_input remainder))))
_
- (//.fail (exception.construct ..unexpected_value [head])))))
+ (//.failure (exception.construct ..unexpected_value [head])))))
(def: #export (object parser)
{#.doc "Parses a JSON object. Use this with the 'field' combinator."}
@@ -158,7 +158,7 @@
list.concat
(//.run parser))
(#try.Failure error)
- (//.fail error)
+ (//.failure error)
(#try.Success [remainder output])
(case remainder
@@ -166,10 +166,10 @@
(wrap output)
_
- (//.fail (exception.construct ..unconsumed_input remainder))))
+ (//.failure (exception.construct ..unconsumed_input remainder))))
_
- (//.fail (exception.construct ..unexpected_value [head])))))
+ (//.failure (exception.construct ..unexpected_value [head])))))
(def: #export (field field_name parser)
{#.doc "Parses a field inside a JSON object. Use this inside the 'object' combinator."}