Hi,
According to section 1.2 in the Bison manual
"A terminal symbol that stands for a particular keyword in the language
should be named after that keyword converted to upper case".
When I follow this convention however, I get a syntax error and a
warning in parser.h where the token type for the keyword BEGIN is defined:
error: expected identifier before ‘(’ token
warning: "BEGIN" redefined
If I change
%token BEGIN
in parser.y to
%token TOKEN_BEGIN
I get no errors.
Any clues?
Regards,
August
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison