summaryrefslogtreecommitdiffstats
path: root/parser.l
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 /parser.l
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 'parser.l')
-rw-r--r--parser.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.l b/parser.l
index 0fd39c5b..9f40dec8 100644
--- a/parser.l
+++ b/parser.l
@@ -270,8 +270,8 @@ UONLY {U2}{U}|{U3}{U}{U}|{U4}{U}{U}{U}
return END;
}
-<SPECIAL>\({WS}collect{WS}\) {
- yy_pop_state();
+<SPECIAL>\({WS}collect/{ID_END} {
+ yy_push_state(NESTED);
return COLLECT;
}