[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
%union errors that shouldn't be there
From: |
DYP |
Subject: |
%union errors that shouldn't be there |
Date: |
Sun, 20 Mar 2005 16:57:13 -0500 |
Hello,
My %union is declared in the following way and does have the proper
header file included but I still get errors that should not be there.
%union{
float fconst;
int type;
astNode* node;
string* name;
nodeList* list;
}
Here are the errors that I get when trying to compile the bison
generated file
In file included from misery.ll:30:
gram.yy:26: error: ISO C++ forbids declaration of `astNode' with no type
gram.yy:26: error: expected `;' before '*' token
gram.yy:27: error: ISO C++ forbids declaration of `string' with no type
gram.yy:27: error: expected `;' before '*' token
gram.yy:28: error: ISO C++ forbids declaration of `nodeList' with no
type
gram.yy:28: error: expected `;' before '*' token
I just don't see what I am doing wrong.
Your help is appreciated.
- %union errors that shouldn't be there,
DYP <=
- Re: %union errors that shouldn't be there, Laurence Finston, 2005/03/21
- Re: %union errors that shouldn't be there, Hans Aberg, 2005/03/21
- Re: %union errors that shouldn't be there, Laurence Finston, 2005/03/23
- Re: %union errors that shouldn't be there, Hans Aberg, 2005/03/23
- Re: %union errors that shouldn't be there, Laurence Finston, 2005/03/23
- Re: %union errors that shouldn't be there, Hans Aberg, 2005/03/23
- Re: %union errors that shouldn't be there, Laurence Finston, 2005/03/24
- Re: %union errors that shouldn't be there, Hans Aberg, 2005/03/24