C++ and Bison

"Chris D." <dawson@physics.uq.edu.au>
19 Dec 2002 12:42:28 -0500

          From comp.compilers

Related articles
C++ and Bison dawson@physics.uq.edu.au (Chris D.) (2002-12-19)
| List of all articles for this month |

From: "Chris D." <dawson@physics.uq.edu.au>
Newsgroups: comp.compilers
Date: 19 Dec 2002 12:42:28 -0500
Organization: University of Queensland
Keywords: C++, yacc, question
Posted-Date: 19 Dec 2002 12:42:28 EST

Hi there,


I am using bison and flex in a C++ project and replaced the


%union{
...
}


declaration in the .y file with


%{


struct {
TypeWithNonTrivalConstructor cVal<T>;
...
} YYSTYPE;


extern YYSTYPE yylval;
%}


following a webpage I found. So far it works OK but are there any
future problems I might encounter doing this?


Regards,


Chris


---


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.