summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-07-22 08:07:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2024-07-22 08:07:19 -0700
commit3105dd166717f54e0977d9d927d1f812518f9e6d (patch)
treea2f55843aab915431f18ee0946b0eae84a9dbfcd /eval.c
parent955fa5af407155124977adf8914f825423c21584 (diff)
downloadtxr-3105dd166717f54e0977d9d927d1f812518f9e6d.tar.gz
txr-3105dd166717f54e0977d9d927d1f812518f9e6d.tar.bz2
txr-3105dd166717f54e0977d9d927d1f812518f9e6d.zip
json: new *read-json-int* variable.
* parser.h (struct parser): New member, read_json_int. * parser.c (read_json_int_s): New symbol variable for *read-json-int* symbol. (parser_common_init): Look up value of *read-json-int* and store in read_json_int struct member. (parse_init): Initialize read_json_int_s with interned symbol and also register the dynamic variable. * parser.l (grammar): Extend the {JNUM} rule to check the read_json_int flag and produce an integer value if the lexeme does not contain a decimal point, e or E. * tests/010/json.tl: New tests. * txr.1: Documented. * lex.yy.c.shipped: Regenerated.
Diffstat (limited to 'eval.c')
0 files changed, 0 insertions, 0 deletions