bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiler error .hh file


From: Akim Demaille
Subject: Re: compiler error .hh file
Date: Sun, 22 Dec 2013 17:31:15 +0100

Le 22 déc. 2013 à 17:28, Akim Demaille <address@hidden> a écrit :

> We would really need to be able to reproduce this if you want us to
> track down your problem.  Can you send your input files?

Well, I had a better look at your input file, and the problem is
most probably here:

%token <Playmode> BEFORE_KICK_OFF
%token <Playmode> TIME_OVER
%token <Playmode> PLAY_ON
...
%type < Playmode >     playmode

I bet that the spaces are _not_ removed from the <…>, so bison
will have considered <Playmode> and < Playmode > as two different
types, and therefore will have generated twice the constructors.
However your c++ is smart enough to see that's twice the same thing,
and complains about this.

Obviously, Bison should strip these spaces.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]