Re: Parser

"Fred J. Scipione" <>
14 Sep 2002 00:16:57 -0400

          From comp.compilers

Related articles
Parser (Aaron Becher) (2002-09-12)
Re: Parser (Christian Lindig) (2002-09-12)
Re: Parser (Karsten Nyblad) (2002-09-12)
Re: Parser (Fred J. Scipione) (2002-09-14)
Re: Parser (Grzegorz Jakacki) (2002-09-14)
Re: Parser (VBDis) (2002-09-14)
Re: Parser (Mikael 'Zayenz' Lagerkvist) (2002-09-19)
| List of all articles for this month |

From: "Fred J. Scipione" <>
Newsgroups: comp.compilers
Date: 14 Sep 2002 00:16:57 -0400
Organization: Road Runner
References: 02-09-078
Keywords: translator
Posted-Date: 14 Sep 2002 00:16:56 EDT

"Aaron Becher" <> wrote in message
> What would be the best approach? I have a VERY large pool of source
> code that needs a certain line of code inserted at the beginning of
> every function (a macro). A few years ago, I created from scratch a
> tool that could parse our C and C++ source code and insert and/or
> maintain this line of code at the beginning of every
> function. However, it does run into problems now and then, especially
> when our coding standard is not followed.

Adrian Johnstone's RDP package has a "C" pretty printer grammar
which you might try adapting to your purpose. It might also point
to a direction for adapting the Roskind "C++" grammar as well.

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.