This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Cleanup, document, and restructure regen/regcomp.pl
authorYves Orton <demerphq@gmail.com>
Mon, 5 Oct 2015 16:49:46 +0000 (18:49 +0200)
committerYves Orton <demerphq@gmail.com>
Mon, 5 Oct 2015 19:10:49 +0000 (21:10 +0200)
commitf83e001e339db3eb180f5f1918c268681665839d
tree1f4abd6de375256c1169c3f28b4e8a082ab6d20c
parentfee505829585692618c3f9bb28a8f0464553ec94
Cleanup, document, and restructure regen/regcomp.pl

We cleanup the parsing code, replacing our set of arrays of
properties with an array of hashes of properties, with
utility subs registering new items, etc.

We also split up the output code into a set of subs,
one sub per output "blob" (generaly a var definition),
so that we have some visibility of the higher level strucuture
of our output code. With this patch visibility of the structure
of what we generate emerges from the nest of here docs. :-)

Note this change does not (greatly) alter regcomp.sym or
perldebguts.pod, it merely cleans up and generally speaking
modernizes and most importantly documents the code.
regen/regcomp.pl
regnodes.h