On 14 Aug 2010, at 10:56, John P. Hartmann wrote:
What is the purpose of this declaration in the generated C file:
extern int yylex (void);
I can see that I can define a macro to turn it off, but it seems to
serve no purpose as the function is defined anyhow about fifteen lines
below. I suppose a purist might even object to "extern".
It might be a remnant from the past(?), without proper header files.
Then two style was to include the lexer .c file, or not do it, and the
latter case the declaration of yylex() would be needed.
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison