help-bison
[Top][All Lists]
Advanced

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

Re: Renaming parser file


From: Frans Englich
Subject: Re: Renaming parser file
Date: Sun, 30 Jul 2006 01:18:11 +0000
User-agent: KMail/1.8.50

On Saturday 29 July 2006 22:52, Satya wrote:
> > Can I do these renames with bison directives? I would prefer if my .ypp
> > file
> > was completely self contained and that I didn't have to do any
> > post-processing.
> >
> > There is %file-prefix, but I don't see how it helps me since I don't want
> > to
> > change the "QueryTransformParser" part. Then there is "%output" which the
> > Bison manual says "set the name of the parser file." I don't get what
> > that means, or how it differs from %file-prefix.
>
> hi,
> bison -o QueryTransformParser.cpp QueryTransformer.ypp
>
> should do the trick. or use %output QueryTransformer.cpp. The command line
> option is given priority if different than the directive.

Yes, one step closer. But the define file is named ".hpp", I'd like ".h". I 
guess this is as close as one gets.


Thanks,

                Frans




reply via email to

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