diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/documentation/lux/control/parser/json.lux | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/stdlib/source/documentation/lux/control/parser/json.lux b/stdlib/source/documentation/lux/control/parser/json.lux deleted file mode 100644 index 89ab7f9f1..000000000 --- a/stdlib/source/documentation/lux/control/parser/json.lux +++ /dev/null @@ -1,93 +0,0 @@ -(.require - [library - [lux (.except) - ["$" documentation (.only documentation:)] - [data - [text (.only \n) - ["%" \\format (.only format)]]] - [meta - [macro - ["[0]" template]]]]] - [\\library - ["[0]" /]]) - -(documentation: (/.Parser it) - "A JSON parser.") - -(documentation: /.result - (format "Executes the parser against a JSON object." - \n "Verifies that all of the JSON was consumed by the parser.") - [(result parser json)]) - -(documentation: /.any - "Just returns the JSON input without applying any logic.") - -(with_template [<name>] - [(`` (documentation: <name> - (format "Reads a JSON value as " (,, (template.text [<name>])) ".")))] - - [/.null] - [/.boolean] - [/.number] - [/.string] - ) - -(with_template [<test> <check> <read>] - [(`` (documentation: <test> - (format "Asks whether a JSON value is a " (,, (template.text [<read>])) "."))) - (`` (documentation: <check> - (format "Ensures a JSON value is a " (,, (template.text [<read>])) ".")))] - - [/.boolean? /.this_boolean ..boolean] - [/.number? /.this_number ..number] - [/.string? /.this_string ..string] - ) - -(documentation: /.nullable - "Enhances parser by adding NULL-handling." - [(nullable parser)]) - -(documentation: /.array - "Parses the contents of a JSON array." - [(array parser)]) - -(documentation: /.object - (format "Parses the contents of a JSON object." - \n "Use this with the 'field' combinator.") - [(object parser)]) - -(documentation: /.field - (format "Parses a field inside a JSON object." - \n "Use this inside the 'object' combinator.") - [(field field_name parser)]) - -(documentation: /.dictionary - "Parses a dictionary-like JSON object.") - -(.def .public documentation - (.List $.Module) - ($.module /._ - "" - [..Parser - ..result - ..any - - ..null - ..boolean - ..number - ..string - - ..boolean? ..this_boolean - ..number? ..this_number - ..string? ..this_string - - ..nullable - ..array - ..object - ..field - ..dictionary - ($.default /.unconsumed_input) - ($.default /.empty_input) - ($.default /.unexpected_value) - ($.default /.value_mismatch)] - [])) |