Re: Renaming parser file

2006-09-03 Thread Akim Demaille
Le 21 août 06 à 20:42, Joel E. Denny a écrit : On Sun, 20 Aug 2006, Frans Englich wrote: Any chance that %defines can be changed to also allow the name to be explicitly specified? I'm not sure why %defines and -d and are different from --defines, -o, --output, and %output. Reading the -d a

Re: Renaming parser file

2006-08-21 Thread Joel E. Denny
On Sun, 20 Aug 2006, Frans Englich wrote: > Any chance that %defines can be changed to also allow the name to be > explicitly specified? I'm not sure why %defines and -d and are different from --defines, -o, --output, and %output. Reading the -d and --defines documentation makes it seem inten

Re: Renaming parser file

2006-08-20 Thread Frans Englich
On Monday 31 July 2006 16:19, Joel E. Denny wrote: > On Mon, 31 Jul 2006, Frans Englich wrote: > > Yeah, still don't see how it would be possible to call the output files > > QueryTransformer.cpp/QueryTransformer.h. Specifying -o > > QueryTransformer.cpp and --defines leads to > > QueryTransformer.

Re: Renaming parser file

2006-07-31 Thread Joel E. Denny
On Mon, 31 Jul 2006, Frans Englich wrote: > Yeah, still don't see how it would be possible to call the output files > QueryTransformer.cpp/QueryTransformer.h. Specifying -o QueryTransformer.cpp > and --defines leads to QueryTransformer.cpp/QueryTransformer.hpp. info bison and search for --defin

Re: Renaming parser file

2006-07-31 Thread Frans Englich
On Sunday 30 July 2006 16:30, Joel E. Denny wrote: > On Sat, 29 Jul 2006, Frans Englich wrote: > > The sed calls remove the defines for the YYTOKENTYPE so I can use the > > enum without trouble.(yytokentype). > > This is fixed in CVS, so you should see it in Bison 2.4. Nice! > > Can I do these re

Re: Renaming parser file

2006-07-30 Thread Joel E. Denny
On Sat, 29 Jul 2006, Frans Englich wrote: > The sed calls remove the defines for the YYTOKENTYPE so I can use the enum > without trouble.(yytokentype). This is fixed in CVS, so you should see it in Bison 2.4. > Can I do these renames with bison directives? I would prefer if my .ypp file > was

Re: Renaming parser file

2006-07-29 Thread Frans Englich
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

Renaming parser file

2006-07-29 Thread Frans Englich
Hello all, As can be seen, I do a fair bit of post processing on my parser: parser: cd $(srcdir) bison QueryTransformParser.ypp mv QueryTransformParser.tab.cpp QueryTransformParser.cpp mv QueryTransformParser.tab.hpp QueryTransformParser.h sed -i -e 's/#d