diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-12-30 12:26:41 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-12-30 12:26:41 -0800 |
commit | ac08d22c2b916fbd88c938569e0cd6af488b7a67 (patch) | |
tree | 845a929d332f67cc7ec6bd5196b3acf3d52f69b7 /match.h | |
parent | 0b81b8b4c39b6c60cbbe8de5a6a785beb43c3dbb (diff) | |
download | txr-ac08d22c2b916fbd88c938569e0cd6af488b7a67.tar.gz txr-ac08d22c2b916fbd88c938569e0cd6af488b7a67.tar.bz2 txr-ac08d22c2b916fbd88c938569e0cd6af488b7a67.zip |
* match.c (counter_k): New keyword symbol variable.
(do_output_line): Process new :counter argument of rep.
(do_output): Ditto, for repeat.
(syms_init): Intern new keyword symbol.
* match.h (counter_k): Declared.
* parser.l (REPEAT, REP): Lexical syntax changed to
allow arguments.
* parser.y (repeat_rep_helper): Takes extra argument, representing
the repeat/rep args. This is inserted into the second position
of the output list.
(repeat_clause, rep_elem): Extract repeat/rep arguments and
pass to repeat_rep_helper.
(yybadtoken): Do not put quotes around the word "number".
* txr.1: Updated.
Diffstat (limited to 'match.h')
-rw-r--r-- | match.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -24,7 +24,7 @@ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -extern val text_s, choose_s, gather_s, do_s, mod_s, modlast_s; +extern val text_s, choose_s, gather_s, do_s, mod_s, modlast_s, counter_k; val format_field(val string_or_list, val modifier, val filter); val match_funcall(val name, val arg, val other_args); int extract(val spec, val filenames, val bindings); |