diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-03-12 10:30:56 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-03-12 10:30:56 -0700 |
commit | 5e1226c161ac4dd114fa5071baa943f72b79741c (patch) | |
tree | f9e9faa76092c0e676f0261b338696e4fc97244b /txr.1 | |
parent | 0ceb62ad1eddfdc0ade20005829c845afec67d81 (diff) | |
download | txr-5e1226c161ac4dd114fa5071baa943f72b79741c.tar.gz txr-5e1226c161ac4dd114fa5071baa943f72b79741c.tar.bz2 txr-5e1226c161ac4dd114fa5071baa943f72b79741c.zip |
match-fun: make last two args optional.
* eval.c (eval_init): Update registration of match-fun.
* match.c (match_fun): Do defaulting on third and fourth arg.
* txr.1: Documenation updated.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -50264,7 +50264,7 @@ and .coNP Function @ match-fun .synb -.mets (match-fun < name < args < input << files ) +.mets (match-fun < name < args >> [ input <> [ files ]]) .syne .desc The @@ -50284,15 +50284,18 @@ pattern language, not \*(TL) and evaluated accordingly. The .meta input argument is a list of strings, which may be lazy. It represents the -lines of the text stream to be processed. +lines of the text stream to be processed. If omitted, it defaults to +.codn nil . The -.meta file +.meta files argument is a list of filename specifications, which follow the same conventions as files given on the \*(TX command line. If the pattern function uses the .code @(next) -directive, it can process these additional files. +directive, it can process these additional files. If this argument is +omitted, it defaults to +.codn nil . The .code match-fun |