In perl.git, the branch smoke-me/davem/bison3 has been created
<http://perl5.git.perl.org/perl.git/commitdiff/5476735760803836e00f0f9d413f55f1e0f83607?hp=0000000000000000000000000000000000000000>
at 5476735760803836e00f0f9d413f55f1e0f83607 (commit)
- Log -----------------------------------------------------------------
commit 5476735760803836e00f0f9d413f55f1e0f83607
Author: David Mitchell <[email protected]>
Date: Mon Jul 18 11:57:19 2016 +0100
rename "WORD" lexical token to "BAREWORD"
The enum value "WORD" can apparently clash with a enum value in windows
headers. It used to be worked around in windows by #defining YYTOKENTYPE,
which caused the
enum yytokentype {
...
WORD = ...;
}
in perly.h to be skipped, while still using the
#define WORD ...
which appears later in the same file.
In bison 3.x, the auto-generated perl.h no longer includes the #defines,
so this workaround no longer works.
Instead, change the name of the token from "WORD" to "BAREWORD".
-----------------------------------------------------------------------
--
Perl5 Master Repository