diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-09-29 08:45:26 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-09-29 08:45:26 -0700 |
commit | 4e33de0b5b4a32e9b9b44c2ac23f4d757eb6e92e (patch) | |
tree | 02f7a406a9cf8c7c8a6031b0fcefcb783b357755 /parser.l | |
parent | e24b844825e726b0f050faaf28d00798c29e342f (diff) | |
download | txr-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.l | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |