Branch: refs/heads/yves/curlyx_curlym
Home: https://github.com/Perl/perl5
Commit: 2b43e38ccd79c19510de887f858de1e369d3f5d5
https://github.com/Perl/perl5/commit/2b43e38ccd79c19510de887f858de1e369d3f5d5
Author: Yves Orton <[email protected]>
Date: 2023-01-08 (Sun, 08 Jan 2023)
Changed paths:
M MANIFEST
M mg.c
M pod/perldebguts.pod
M pp.c
M pp_ctl.c
M pp_hot.c
M regcomp.c
M regcomp.h
M regcomp.sym
M regcomp_debug.c
M regcomp_internal.h
M regcomp_study.c
M regexec.c
M regexp.h
M regnodes.h
M t/re/pat.t
M t/re/pat_re_eval.t
M t/re/pat_rt_report.t
M t/re/re_tests
M t/re/reg_mesg.t
M t/re/regexp.t
A t/re/regexp_normal.t
Log Message:
-----------
fixup many regexp bugs - not to be merged yet
This fixes a number of longstanding regexp bugs and issues. It includes
debugging
changes and other stuff i will rebase away.
The main point is that we use a two layer model to represent capture
buffers, and implement a concept of "commiting" the changes, and we
store additional data in the CURLY nodes so we can manage the parens
they contain properly. This is likely not the most efficient way to do
this. The idea was to be correct first, then optimize.
Commit: 7de204d157683ee2fab6ff87e26940d9a7b9ad13
https://github.com/Perl/perl5/commit/7de204d157683ee2fab6ff87e26940d9a7b9ad13
Author: Yves Orton <[email protected]>
Date: 2023-01-08 (Sun, 08 Jan 2023)
Changed paths:
M pod/perldebguts.pod
M regcomp.c
M regcomp.h
M regcomp.sym
M regcomp_debug.c
M regcomp_trie.c
M regexec.c
M regexp.h
M regnodes.h
M t/re/re_tests
Log Message:
-----------
work in progress - clear capture buffers in failing branches properly
If a branch fails we should reset all the parens it contained
before we execute the next branch.
This is almost certainly not as efficient as it could be.
Commit: d8abd46bb4130c215ef8bb23cf424927df8db334
https://github.com/Perl/perl5/commit/d8abd46bb4130c215ef8bb23cf424927df8db334
Author: Yves Orton <[email protected]>
Date: 2023-01-08 (Sun, 08 Jan 2023)
Changed paths:
M t/re/pat.t
Log Message:
-----------
t/re/pat.t - add tests from GH Issue #18865
These were all fixed in the previous commits.
Commit: a7154c9e19bd9e77e8ab4d526580366389f58e3d
https://github.com/Perl/perl5/commit/a7154c9e19bd9e77e8ab4d526580366389f58e3d
Author: Yves Orton <[email protected]>
Date: 2023-01-08 (Sun, 08 Jan 2023)
Changed paths:
M regcomp_debug.c
M regcomp_study.c
Log Message:
-----------
wip
Commit: f251b3898e9a329f7a69f5867ced457237b43f68
https://github.com/Perl/perl5/commit/f251b3898e9a329f7a69f5867ced457237b43f68
Author: Yves Orton <[email protected]>
Date: 2023-01-08 (Sun, 08 Jan 2023)
Changed paths:
M regcomp_study.c
Log Message:
-----------
regcomp_study.pl - disable CURLYX optimizations when EVAL has been seen
anywhere
Historically we disabled CURLYX optimizations when they
*contained* an EVAL, on the assumption that the optimization might
affect how many times, etc, the eval was called. However, this is
also true for CURLYX with evals *afterwards*. If the CURLYN or CURLYM
optimization can prune off the search space, then an eval afterwards
will be affected. An when you take into account GOSUB, it means that
an eval in front might be affected by an optimization after it.
So for now we disable CURLYN and CURLYM in any pattern with an EVAL.
Commit: c4d361469f088d86052e14bdf641d9bd2d95000c
https://github.com/Perl/perl5/commit/c4d361469f088d86052e14bdf641d9bd2d95000c
Author: Yves Orton <[email protected]>
Date: 2023-01-08 (Sun, 08 Jan 2023)
Changed paths:
M regen/regcomp.pl
M regnodes.h
Log Message:
-----------
regcomp.pl - fixup intflags debug data
We were not handling gaps in the sequence properly. Now we die if
there are any collisions or if any of PREGf define set more than
one bit
Commit: 3a5f7a8baa5990ab472376691c3decff036aeb12
https://github.com/Perl/perl5/commit/3a5f7a8baa5990ab472376691c3decff036aeb12
Author: Yves Orton <[email protected]>
Date: 2023-01-08 (Sun, 08 Jan 2023)
Changed paths:
M pod/perldelta.pod
M pod/perlre.pod
M regcomp.c
M regcomp.h
M regcomp_debug.c
M regcomp_internal.h
M regcomp_study.c
M regexec.c
M regnodes.h
M t/re/pat_re_eval.t
Log Message:
-----------
regcomp.c - add optimistic eval
Compare: https://github.com/Perl/perl5/compare/af04e24ddd77...3a5f7a8baa59