[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Unions and lexer
From: |
Mike Rollins |
Subject: |
Unions and lexer |
Date: |
Tue, 18 Feb 2003 16:53:12 -0500 |
User-agent: |
KMail/1.4.3 |
When I compile my parser, it compiles fine. However, when it comes time to
compile my lexer, I get the following error:
'TRANSLATION' is used as a type, but is not defined as a type.
My union looks like this:
%union YYSTYPE{
char* id;
TRANSLATION code;
}
I do a typedef to define TRANSLATION (it's a class):
typedef CodeString* TRANSLATION;
Even if I put the typedef in my lexer file, it's still not working.
Do I need to extern something?
Mike
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Unions and lexer,
Mike Rollins <=