> All I need is a program that can parse the source and replace all > instances of > classes and functions including arguments based on a simple 2,3 column > text file.
I don't think you need bison for this task. I would probably try to solve the problem (carefully) using Emacs-Lisp or even just normal Emacs editing commands (in particular, `tags-query-replace'). Other possibilities would be gawk or Flex, though I think Flex would be overkill, unless you needed to use it often. Another possibility might be including a header with preprocessor macros for replacing the names of the classes. Not one of my favorite techniques, but it might be worth considering. Laurence Finston On Wed, March 31, 2010 12:48 am, Jacob Ole Juul Kolding wrote: > Hello List > > I'm a total newb regarding all things bison/yacc but I think it's the > tool for my current problem at hand. > I have a rather large code base written in C/C++ where I need to replace > some fundamental classes > and all references to function call from other classes/functions. > > All I need is a program that can parse the source and replace all > instances of > classes and functions including arguments based on a simple 2,3 column > text file. > > Can anyone point me to relevant examples or share ideas on the subject? > > Best Regards > Jacob > > > _______________________________________________ > help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison > _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison