This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add support for Bison versions up to 3.7
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Mon, 27 Jul 2020 20:48:11 +0000 (21:48 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Thu, 6 Aug 2020 13:55:10 +0000 (14:55 +0100)
commita9d4ef0f970b8b926f41fb1148174640f0c9325b
tree15c317fd10e9dd260fd81bc4a102ebf7dfa1d24f
parent0a2b3d8846bc5c68e42def5b83d657754b4d07ce
Add support for Bison versions up to 3.7

This requires copying the `YY_CAST` and `YY_ATTRIBUTE_UNUSED` macros
from the generated code, and extracting the `yysymbol_kind_t` enum if
it's defined.

We must also handle token type names with escaped double-quotes in
them, since it now names the `YYEOF` and `YYUNDEF` tokens `"end of
file"` and `"invalid token"` instead of `$end` and `$undefined`,
respectively.
perly.act
perly.c
perly.h
perly.tab
pod/perldelta.pod
regen_perly.pl