[Replies cc Help-Bison]

Why not write another header file?

Also note that names starting with "_" are reserved for compiler implementation.

  Hans Aberg


On 24 Oct 2006, at 18:31, Pupeno wrote:

Hello,
I have a Bison parser, parser.y, which generates a C source file, parser.c
and its header file, parser.h.
I want to put something in parser.h: the declaration/prototype of a function that is in parser.y and ends up in parser.c. This is because this function
should be usable from other files that use the parser.
Is there some way to do it ? That is, can I put something in parser.y that
will end up in parser.h ?
Alternatively, can I instead generate it as _parser.h and write my own
parser.h (that would include _parser.h).
Thank you.
--
Pupeno <[EMAIL PROTECTED]> (http://pupeno.com)
_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison



_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to