[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: porting from 2.3 to 2.6.5
From: |
Akim Demaille |
Subject: |
Re: porting from 2.3 to 2.6.5 |
Date: |
Thu, 26 Sep 2013 15:54:39 +0200 |
Le 25 sept. 2013 à 16:33, Miquel Catala <address@hidden> a écrit :
> hello bison team
>
> I have a software written for flex 2.5.35 and bison 2.3 that is now
> working well in SLES11.1
>
> I get many errors when trying to make it work in openSuSE 12.3.
>
> ...Rlex.L:42:8: error: 'YYSTYPE' does not name a type
> ...Rlex.L: In function 'int yylex()':
> ...Rlex.L:179:29: error: 't_DEBUG' was not declared in this scope
> ...Rlex.L:182:35: error: 't_PRINT' was not declared in this scope
> ...Rlex.L:186:6: error: 'yylval' was not declared in this scope
> ...Rlex.L:192:35: error: 't_LEFTCURLYBRACKET' was not declared in this
> scope
> ...lex.L:194:6: error: 'yylval' was not declared in this scope
> ...Rlex.L:199:14: error: 't_RIGHTCURLYBRACKET' was not declared in this
> scope
> ...
>
> bison in openSuSE12.3 is 2.6.5.
>
> Do you have any idea about what makes all those errors to raise??
Hi Miquel,
It's hard to tell without having a look at your code. You should
read the NEWS files between 2.3 and 2.6.5 to see what changed, but
chances are high that you are using %{…%} "improperly". Have a
look at the documentation of %code:
http://www.gnu.org/software/bison/manual/html_node/Prologue-Alternatives.html