%union problem in 2.4 version

2009-03-25 Thread Cleto Martin Angelina
Hi! Recently, i'm having troubles compiling my parser, which worked in bison 2.3. The output message is: Parser.y:42: error: ISO C++ forbids declaration of ‘Invocation’ with no type Parser.y:42: error: expected ‘;’ before ‘*’ token Parser.y:43: error: ISO C++ forbids declaration of ‘Parameter’ wi

Re: %union problem in 2.4 version

2009-03-25 Thread Joel E. Denny
Hi Cleto, On Wed, 25 Mar 2009, Cleto Martin Angelina wrote: > Recently, i'm having troubles compiling my parser, which worked in bison > 2.3. The output message is: > > Parser.y:42: error: ISO C++ forbids declaration of ‘Invocation’ with no type > Parser.y:42: error: expected ‘;’ before ‘*’ toke

Re: %union problem in 2.4 version

2009-03-25 Thread Cleto Martin Angelina
Thanks a lot, Joel. The problem is now solved. Your reference to the manual's section was enough. I'm sorry about my stupid question, it was a silly thing. I only had to change the %{ ... }% block for a %code top and %code requires blocks before %union declaration. Regards, Cleto On Wed, Mar 25,

Re: %union problem in 2.4 version

2009-03-25 Thread Joel E. Denny
On Wed, 25 Mar 2009, Cleto Martin Angelina wrote: > Thanks a lot, Joel. No problem. > The problem is now solved. Your reference to the manual's section was > enough. I'm sorry about my stupid question, it was a silly thing. I only had > to change the %{ ... }% block for a %code top and %code req