Re: Where to put '#define YYSTYPE char *'?

2009-12-28 Thread Hans Aberg
On 28 Dec 2009, at 03:55, Peng Yu wrote: I have the following example6.y and example6.l files. The compilation gives me warnings. I'm not sure where to put '#define YYSTYPE char *' (it is currently in example6.y). Could somebody let me know? The example is from http://tldp.org

Re: Where to put '#define YYSTYPE char *'?

2009-12-27 Thread Chris verBurg
I think that belongs in the flex file (example6.l), not the yacc file (example6.y). -Chris On Sun, Dec 27, 2009 at 9:55 PM, Peng Yu wrote: > I have the following example6.y and example6.l files. The compilation > gives me warnings. I'm not sure where to put '#define YYSTYPE

Where to put '#define YYSTYPE char *'?

2009-12-27 Thread Peng Yu
I have the following example6.y and example6.l files. The compilation gives me warnings. I'm not sure where to put '#define YYSTYPE char *' (it is currently in example6.y). Could somebody let me know? The example is from http://tldp.org/HOWTO/Lex-YACC-HOWTO-4.html $./compile.sh