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 _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison