diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-01 21:02:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-01 21:02:38 -0700 |
commit | 2e09b52431cc988fbb0c6b898f262347252a126d (patch) | |
tree | 7020acb036fbcb65c9507ac90f373c5256d49b36 | |
parent | 3ab1ca6360895e8ebc58af1f7e89365361be079d (diff) | |
download | txr-2e09b52431cc988fbb0c6b898f262347252a126d.tar.gz txr-2e09b52431cc988fbb0c6b898f262347252a126d.tar.bz2 txr-2e09b52431cc988fbb0c6b898f262347252a126d.zip |
doc: rearrangement in Data Interchange Support
* txr.1: Move the json macro description to the beginning of
the section.
-rw-r--r-- | txr.1 | 68 |
1 files changed, 34 insertions, 34 deletions
@@ -71957,6 +71957,40 @@ etc. .SS* Data Interchange Support +.coNP Macro @ json +.synb +.mets (json [quote | sys:qquote] << object ) +.syne +.desc +The +.code json +macro exists in supports of the JSON literal and quasiliteral +.mono +.meti >> #J json-syntax +.onom +and +.mono +.meti >> #J^ json-syntax +.onom +notations, which use the macro as their target abstract syntax. + +The macro transforms itself by deleting the +.code json +symbol, producing either the +.mono +.meti (quote << object ) +.onom +quote syntax, or else the +.mono +.meti (sys:qquote << object ) +.onom +quasiquote syntax, depending on which quoting symbol is present. + +If the application produces and expands a +.code json +macro form which does not conform to this syntax, or does not +specify one of the above two quoting symbols, the behavior is unspecified. + .coNP Functions @ put-json and @ put-jsonl .synb .mets (put-json < obj >> [ stream <> [ flat-p ]]) @@ -72141,40 +72175,6 @@ and respectively. JSON objects map to hash tables, and JSON arrays to vectors. -.coNP Macro @ json -.synb -.mets (json [quote | sys:qquote] << object ) -.syne -.desc -The -.code json -macro exists in supports of the JSON literal and quasiliteral -.mono -.meti >> #J json-syntax -.onom -and -.mono -.meti >> #J^ json-syntax -.onom -notations, which use the macro as their target abstract syntax. - -The macro transforms itself by deleting the -.code json -symbol, producing either the -.mono -.meti (quote << object ) -.onom -quote syntax, or else the -.mono -.meti (sys:qquote << object ) -.onom -quasiquote syntax, depending on which quoting symbol is present. - -If the application produces and expands a -.code json -macro form which does not conform to this syntax, or does not -specify one of the above two quoting symbols, the behavior is unspecified. - .coNP Function @ put-jsons .synb .mets (put-jsons < seq >> [ stream <> [ flat-p ]]) |