summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-09-03 20:34:22 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-09-03 20:34:22 -0700
commit60dd1c1c6af5c179f598dea60896ba9584d139ad (patch)
treef15011d4f35818c29143b010f46bf3c9d7ba52a4 /stream.c
parentc6375343615ac20cc8bc8abd953093f7ebaaa401 (diff)
downloadtxr-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 'stream.c')
0 files changed, 0 insertions, 0 deletions