summaryrefslogtreecommitdiffstats
path: root/parser.y
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-01-08 19:59:09 -0800
committerKaz Kylheku <kaz@kylheku.com>2025-01-08 19:59:09 -0800
commit58cf667aa73134c7945b0be77ed92f1c8fbc5be9 (patch)
tree3316bfb5fecf5dd4606a4427ef21b6f7fdd5988e /parser.y
parentfe633f383c53bbc080118f40dfb9443279d164f4 (diff)
downloadtxr-58cf667aa73134c7945b0be77ed92f1c8fbc5be9.tar.gz
txr-58cf667aa73134c7945b0be77ed92f1c8fbc5be9.tar.bz2
txr-58cf667aa73134c7945b0be77ed92f1c8fbc5be9.zip
lop: don't insert args when metas present.
The lop macro is inconsistent from op in that it inserts the trailing function arguments on the left even if arguments are explicitly given in the form via @1, @2, ... or @rest. This change makes lop is equivalent to op in all situations when these metas are given. * stdlib/op.tl (compat-225, compat-298): New top-level variables. (op-expand): local variable compat replaced by references to compat-225. If compat-298 is *not* in effect, then metas are checked for first in the cond, preventing the lop transformation from taking place. * tests/012/op.tl: Test cases for lop, combinations of do with lop and a few for op also. * txr.1: Redocumented, added compat notes.
Diffstat (limited to 'parser.y')
0 files changed, 0 insertions, 0 deletions