diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2010-01-13 15:25:11 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2010-01-13 15:25:11 -0800 |
commit | 56cfdc348955495dbd11fc70fb7ac04a8bba1f71 (patch) | |
tree | ee7f0d7c44782243800dafc7605d588216d46755 /ChangeLog | |
parent | 5c111d0e415db7bc0bfa236b08ae6d620e898e92 (diff) | |
download | txr-56cfdc348955495dbd11fc70fb7ac04a8bba1f71.tar.gz txr-56cfdc348955495dbd11fc70fb7ac04a8bba1f71.tar.bz2 txr-56cfdc348955495dbd11fc70fb7ac04a8bba1f71.zip |
Dynamically determine which regex implementation to use:
NFA or derivatives. The default behavior is NFA, with
derivatives used if the regular expression contains
uses of complement or intersection. The --dv-regex
option forces derivatives always.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1,5 +1,22 @@ 2010-01-13 Kaz Kylheku <kkylheku@gmail.com> + Dynamically determine which regex implementation to use: + NFA or derivatives. The default behavior is NFA, with + derivatives used if the regular expression contains + uses of complement or intersection. The --dv-regex + option forces derivatives always. + + * regex.c (opt_derivative_regex): Default value is 0 now. + (regex_requires_dv): New function. + (regex_compile): If regex_requires_dv function reports + true, or if the opt_derivative_regex flag is true, + treat the regex with the derivative-based implementation. + + * txr.c (txr_main): Implemented --dv-regex option + to set the opt_derivative_regex flag. + +2010-01-13 Kaz Kylheku <kkylheku@gmail.com> + * lib.h (c_num): Remove redundant declaration. 2010-01-13 Kaz Kylheku <kkylheku@gmail.com> |