|Problems? Is your data what you think it is?|
YACC rules to regex rules ? (UPDATED)by LanX (Cardinal)
|on Aug 31, 2020 at 16:32 UTC||Need Help??|
LanX has asked for the wisdom of the Perl Monks concerning the following question:
I looked in App::a2p trying to understand how awk is translated to Perl
... but it's written in C, which is
Question: Is there an obvious way to translate this to Perl regexes?
A result could be a parse tree, inspected by a walker to generate Perl code.
I just realized that the real YACC/LEX rules are only available on GitHub
Leon pruned this file from the CPAN version.
This makes obviously more sense than decipering the generated C-files.