Le 25 sept. 2013 à 16:33, Miquel Catala <[email protected]> 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
_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison