diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-10-11 20:47:27 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-10-11 20:47:27 -0700 |
commit | aa02bc7f31edabb9e09f9756d7ae8fbc41995017 (patch) | |
tree | 60bd97475501b9c8484f3804a5ac5d409113d373 /stdlib/doc-syms.tl | |
parent | 5df51b54116d4287df161c42ca0edb16fb1f79a5 (diff) | |
download | txr-aa02bc7f31edabb9e09f9756d7ae8fbc41995017.tar.gz txr-aa02bc7f31edabb9e09f9756d7ae8fbc41995017.tar.bz2 txr-aa02bc7f31edabb9e09f9756d7ae8fbc41995017.zip |
json: support standard-style formatting.
* stream.c (standard_k, print_json_format_s):
New symbol variables.
(stream_init): New variables initialized.
* stream.h (enum json_fmt): New enum.
(standard_k, print_json_format_s): Declared.
* lib.c (out_json_rec): Take enum json_fmt param,
and pass it recursively. Printing for vector and
dictionaries reacts to argument value.
(out_json, put_json): Examine value of special
var *print-json-format* and calculate enum json_fmt
value from this. Pass to out_json_rec.
* txr.1: Documented.
* stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'stdlib/doc-syms.tl')
-rw-r--r-- | stdlib/doc-syms.tl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl index e214011c..5cc46e6b 100644 --- a/stdlib/doc-syms.tl +++ b/stdlib/doc-syms.tl @@ -36,6 +36,7 @@ ("*print-flo-digits*" "N-00F41F6C") ("*print-flo-format*" "N-02B252AA") ("*print-flo-precision*" "N-02E97D03") + ("*print-json-format*" "N-02338B4D") ("*random-state*" "N-033875AD") ("*random-warmup*" "N-010348CD") ("*read-bad-json*" "N-01C77B65") |