aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-08-22 17:40:08 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-08-22 17:40:08 -0700
commit6cd86e8975528a9ca5cbf12285724b99b63db4c6 (patch)
treeeaa9eb3ac924e86e896fa16c8740c0b43b006cd0 /docs
parent16a1a11fc9f8a2530940150029e3d7cc0b58430d (diff)
downloadtl-who-6cd86e8975528a9ca5cbf12285724b99b63db4c6.tar.gz
tl-who-6cd86e8975528a9ca5cbf12285724b99b63db4c6.tar.bz2
tl-who-6cd86e8975528a9ca5cbf12285724b99b63db4c6.zip
deftag: support destructuring of body.
The variable which captures the body part of the tag (material after attributes) is now a pattern. Thus the body can be destructured, allowing the custom to effectively have non-attribute parameters. * README.md: Documented. * specials (*cur-form*, *cur-env*): New special variables. * test/simple.tl: Test case for new deftag feature. * who.tl (with-html-output): Capture macro invocation's form and environment, binding them to *cur-form* and *cur-env*. This is a way of getting this information down to the custom tag expander, where destructuring errors can occur now. We would like them diagnosed against the right form. The body destructuring pattern can use :env too. (deftag): tag-body parameter renamed to body-pattern. This is not inserted into the lambda parameter list any more; a gensym is inserted into that position, and then that value is destructured using body-pattern.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions