Re: Token redefinition

2006-11-17 Thread Tim Van Holder
Bob Smith wrote: > The language uses token as "INT" "BOOL" or "FALSE"; when I compile the > project using > Visual Studio 6.0 the following message is displayed: > > "'BOOL' : redefinition; typedef cannot be overloaded with any other > symbol" > > How about #undef BOOL, etc

Re: Token redefinition

2006-11-17 Thread Bob Smith
On 11/17/2006 5:52 AM, Hans Aberg wrote: On 17 Nov 2006, at 10:05, Tim Van Holder wrote: I need to write a simple compiler for a pascal-like linguage, using flex and bison. The language uses token as "INT" "BOOL" or "FALSE"; when I compile the project using Visual Studio 6.0 the following messa

Re: Same rule file in two different application.

2006-11-17 Thread Hans Aberg
On 16 Nov 2006, at 12:53, rathishps sukumaran nair wrote: Is there is any way to use the same rule file in two different systems? I wrote a rule file for one application. Now I want to support this in a different application with some additional tokens, keywords and rules. I adde

Re: Token redefinition

2006-11-17 Thread Hans Aberg
On 17 Nov 2006, at 10:05, Tim Van Holder wrote: I need to write a simple compiler for a pascal-like linguage, using flex and bison. The language uses token as "INT" "BOOL" or "FALSE"; when I compile the project using Visual Studio 6.0 the following message is displayed: "'BOOL' : redefinitio

Re: Token redefinition

2006-11-17 Thread Tim Van Holder
Hans Aberg wrote: > On 16 Nov 2006, at 11:41, Giampaolo Fadel wrote: > >> I need to write a simple compiler for a pascal-like linguage, using >> flex and bison. >> The language uses token as "INT" "BOOL" or "FALSE"; when I compile the >> project using >> Visual Studio 6.0 the following message is