This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.sym: Add new regnode type for (?[])
authorKarl Williamson <khw@cpan.org>
Mon, 17 Feb 2020 18:24:19 +0000 (11:24 -0700)
committerKarl Williamson <khw@cpan.org>
Thu, 20 Feb 2020 01:18:40 +0000 (18:18 -0700)
commit86451f01babb7e6115c520111d32b1128dcc8f57
tree3eb6740b2a8b4d9e8234f60a4e1c8d7e8e092d11
parentf1f5d51d61d3b95058950a4835a9cadfd8f2ad28
regcomp.sym: Add new regnode type for (?[])

This new regnode is used to handle interpolated already-compiled regex
sets inside outer regex sets.

If it isn't present, it will mean that what appears to be a nested,
interpolated set really isn't.

I created a new regnode structure to hold a pointer.  This has to be
temporary as pointers can be invalidated.  I thought of just having a
regnode without a pointer as a marker, and using a parallel array to
store the data, rather than creating a whole new regnode structure for
just pointers, but parallel data structures can get out of sync, so this
seemed best.

This commit just sets up the regnode; a future commit will actually use
it.
pod/perldebguts.pod
regcomp.h
regcomp.sym
regnodes.h