|Using gcc's parser for Y2k work email@example.com (1997-08-28)|
|Re: Using gcc's parser for Y2k work danwang@dynamic.CS.Princeton.EDU (Daniel Wang) (1997-08-30)|
|Re: Using gcc's parser for Y2k work firstname.lastname@example.org (John Lilley) (1997-08-30)|
|Re: Using gcc's parser for Y2k work email@example.com (John Lilley) (1997-09-03)|
|Re: Using gcc's parser for Y2k work firstname.lastname@example.org (Daniel Weise) (1997-09-07)|
|From:||email@example.com (Lynn Wilson)|
|Date:||28 Aug 1997 00:32:07 -0400|
|Keywords:||parse, C, question|
I'm working on writing tools that will deal with analyzing C and C++
source code in regards to year2000 compliance. My plan is to steal
the front end off of the gcc (g++) compiler and use it to build a
parse tree. I will then write code that will crawl over the tree and
'reason' about it.
Is this a resonable way to go? Would standalone lex/yacc (flex/bison)
approaches be a better way? I'm concerned that some of the publicly
available grammars for c/c++ are not complete.
Ideas and suggestions welcomed.
[Prying the parser loose from the rest of GCC is challenging. You might
look at lcc as well. -John]
Return to the
Search the comp.compilers archives again.