On Tue, 29 Dec 2009, August Karlstrom wrote:
> 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?
I'm guessing your parser.h is included in a scanner generated by Flex,
which defines the macro BEGIN.
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison