summaryrefslogtreecommitdiffstats
path: root/stdlib
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-10-23 01:50:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-10-23 01:50:47 -0700
commit06241ce339c528160f6e8a349dc30cc78c914778 (patch)
tree0476b97f85ff510edc8dd35c284af11b9f64776e /stdlib
parentd92448afa4f584186ec4466d28404488ba236dc7 (diff)
downloadtxr-06241ce339c528160f6e8a349dc30cc78c914778.tar.gz
txr-06241ce339c528160f6e8a349dc30cc78c914778.tar.bz2
txr-06241ce339c528160f6e8a349dc30cc78c914778.zip
parser: bugfix: #; at front of list.
The parser wrongly reads #(#; abc) as (nil) instead of (), and related cases derived from this one are all likewise wrong. A number of tests added in the previous commit target this and fail. They are hereby fixed. * parser.y (listacc): In the productions that begin with HASH_SEMI, do not produce a (nil . nil) leading cons, but a (nao . nil) leading cons; so the fact that the first item is commented out is represented by a nao in the car field of the leading cons. (n_exprs): If the first element of the list produced by the listacc grammar symbol is nao, then pop it off. Thereby, we lose the spurious nil that we previously had there left by the commented-out item. * y.tab.c.shipped: Updated.
Diffstat (limited to 'stdlib')
0 files changed, 0 insertions, 0 deletions