Expand|Select|Wrap|Line Numbers
- %union
- {
- int int_type;
- char* string_type;
- PNode* pNode;
- }
- %type <int_type> programs
- %type <pNode> program
Expand|Select|Wrap|Line Numbers
- typedef union YYSTYPE {
- int int_type;
- char* string_type;
- PNode* pNode;
- } YYSTYPE;
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cstdio(17) : error C2143: syntax error : missing '{' before ':'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cstdio(17) : error C2059: syntax error : ':'
Removing this part from the the .hpp file will also produce errors.
I'm using VS2003, Bison 2.1 and Flex 2.5.4a. I hope someone can help me with this. Thanks.