diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-09-03 20:34:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-09-03 20:34:22 -0700 |
commit | 60dd1c1c6af5c179f598dea60896ba9584d139ad (patch) | |
tree | f15011d4f35818c29143b010f46bf3c9d7ba52a4 /psquare.h | |
parent | c6375343615ac20cc8bc8abd953093f7ebaaa401 (diff) | |
download | txr-60dd1c1c6af5c179f598dea60896ba9584d139ad.tar.gz txr-60dd1c1c6af5c179f598dea60896ba9584d139ad.tar.bz2 txr-60dd1c1c6af5c179f598dea60896ba9584d139ad.zip |
json: allow integers and lists.
* lib.c (out_json_rec): Handle NUM and BGNUM cases same as FLNUM
so integers get printed. The restriction against integers has
been largely unhelpful and bothersome. Handle LCONS together with
CONS. Lists that are not special notation fall through to the VEC
case, which now uses seq_iter_t iteration to handle vectors and lists.
* tests/010/json.tl: New tests.
* txr.1: Documented support for printing integers and lists.
Diffstat (limited to 'psquare.h')
0 files changed, 0 insertions, 0 deletions