diff options
author | Eduardo Julian | 2021-08-12 03:12:42 -0400 |
---|---|---|
committer | Eduardo Julian | 2021-08-12 03:12:42 -0400 |
commit | 17629d66062b88b040a2397032f6c08361a5f3a7 (patch) | |
tree | bdc6110750b895667b9e45da5e46bec9609f9a7c /stdlib/source/poly | |
parent | a62ce3f9c2b605e0033f4772b0f64c4525de4d86 (diff) |
Improved binding syntax for "syntax:".
Diffstat (limited to 'stdlib/source/poly')
-rw-r--r-- | stdlib/source/poly/lux/data/format/json.lux | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/source/poly/lux/data/format/json.lux b/stdlib/source/poly/lux/data/format/json.lux index 5b48aa34b..3146804e5 100644 --- a/stdlib/source/poly/lux/data/format/json.lux +++ b/stdlib/source/poly/lux/data/format/json.lux @@ -9,8 +9,9 @@ [control ["." try] ["<>" parser + ["</>" json] ["<.>" type] - ["</>" json]]] + ["<.>" code]]] [data ["." text ["%" format (#+ format)]] @@ -321,7 +322,7 @@ (<>.failure (format "Cannot create JSON decoder for: " (type.format inputT))) )))) -(syntax: .public (codec inputT) +(syntax: .public (codec [inputT <code>.any]) {#.doc (example "A macro for automatically producing JSON codecs." (type: Variant (#Bit Bit) |