help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Request for Help


From: Hans Aberg
Subject: Re: Request for Help
Date: Wed, 11 Oct 2006 22:34:29 +0200

Followups - make sure to cc the Help-Bison list.

There are two styles: traditional, use '#include ""temp.c"' in the .y file; modern, write a 'temp.h' file, and use '#include ""temp.h"' in the .y file. The traditional style often confuses IDEs.

  Hans Aberg


On 10 Oct 2006, at 15:05, Prasad Venkata Kothe wrote:

Hello there,



Recently I have moved to Bison from YACC due to token limitation.

While that issue is resolved, I am facing with a new problem.



I have another file which I want to include in my Bison output file.



Example:

Suppose my Y file is "temp.y"

And the BISON generated file is "temp.c"



I want to include another file called "another.c" in "temp.c".

I do not want to do this manually but when the "temp.c" is generated using
BISON.



Something like this in the generated C file using the -Y option for BISON

#if MYPARSER

#include "another.c"

#endif



Note: This was possible using YACC compiler.



If help can be provided on phone, please provide us the number and we will
call you back.



Please help me regarding this and an early reply will be greatly
appreciated.



Thanks in advance.

Prasad V Kothe



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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]