summaryrefslogtreecommitdiffstats
path: root/match.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-09-29 08:45:26 -0700
committerKaz Kylheku <kaz@kylheku.com>2011-09-29 08:45:26 -0700
commit4e33de0b5b4a32e9b9b44c2ac23f4d757eb6e92e (patch)
tree02f7a406a9cf8c7c8a6031b0fcefcb783b357755 /match.h
parente24b844825e726b0f050faaf28d00798c29e342f (diff)
downloadtxr-4e33de0b5b4a32e9b9b44c2ac23f4d757eb6e92e.tar.gz
txr-4e33de0b5b4a32e9b9b44c2ac23f4d757eb6e92e.tar.bz2
txr-4e33de0b5b4a32e9b9b44c2ac23f4d757eb6e92e.zip
* match.c (mingap_k, maxgap_k, gap_k, times_k, lines_k): New
symbol variables. (match_lines): Keyword arguments in collect implemented. (match_init): New function. * match.h (match_init): Declared. * parser.l (COLLECT): Lexical syntax changed for COLLECT to allow for argument material. * parser.y (%union): obj renamed to val. (exprs_opt): New nonterminal. (collect_clause): Rewritten for arguments. * txr.c (main): Call to match_init introduced.
Diffstat (limited to 'match.h')
-rw-r--r--match.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/match.h b/match.h
index 7d49c48d..f343e654 100644
--- a/match.h
+++ b/match.h
@@ -24,4 +24,5 @@
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
+void match_init(void);
int extract(val spec, val filenames, val bindings);