[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Name clash with token type BEGIN
From: |
August Karlstrom |
Subject: |
Name clash with token type BEGIN |
Date: |
Tue, 29 Dec 2009 20:14:32 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
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
- Name clash with token type BEGIN,
August Karlstrom <=