From 17629d66062b88b040a2397032f6c08361a5f3a7 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Thu, 12 Aug 2021 03:12:42 -0400 Subject: Improved binding syntax for "syntax:". --- stdlib/source/poly/lux/data/format/json.lux | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdlib/source/poly/lux/data/format/json.lux') 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 .any]) {#.doc (example "A macro for automatically producing JSON codecs." (type: Variant (#Bit Bit) -- cgit v1.2.3