[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Name clash with token type BEGIN
From: |
Joel E. Denny |
Subject: |
Re: Name clash with token type BEGIN |
Date: |
Tue, 29 Dec 2009 14:34:07 -0500 (EST) |
User-agent: |
Alpine 1.00 (DEB 882 2007-12-20) |
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.