summaryrefslogtreecommitdiffstats
path: root/parser.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
commitf9c7296269adc16675c96535a9bde8b7686866c0 (patch)
treef15011d4f35818c29143b010f46bf3c9d7ba52a4 /parser.c
parent004dcc459539ce03587cfe3bdef0fd3c4ec68809 (diff)
downloadtxr-f9c7296269adc16675c96535a9bde8b7686866c0.tar.gz
txr-f9c7296269adc16675c96535a9bde8b7686866c0.tar.bz2
txr-f9c7296269adc16675c96535a9bde8b7686866c0.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 'parser.c')
0 files changed, 0 insertions, 0 deletions