|parsing ".h subset" of c email@example.com (1999-04-26)|
|Re: parsing ".h subset" of c firstname.lastname@example.org (Norman Ramsey) (1999-04-29)|
|Re: parsing ".h subset" of c email@example.com (1999-04-29)|
|Re: parsing ".h subset" of c firstname.lastname@example.org (Jerry Pendergraft) (1999-04-30)|
|From:||email@example.com (Derek M Jones)|
|Date:||29 Apr 1999 00:36:27 -0400|
|Organization:||Knowledge Software Ltd|
> I need a c-parser which parses ".h subset of c", namely
> c-files containing usual header declarations such as
> type definitions (typedef etc), macros (#define with or
> without parameters) and procedure signatures. (No problem if
> whole c is parsed).
Statements are easy to parse. It's the declarations that are hard.
You might as well use a parser for the full language.
Having said that:
typedef int T_AND_L;
is not always handled correctly.
> I guess there are pd-tools which can be used to get this information.
> Any suggestions, what tool(s) and how could be used ?
gcc springs to mind (lcc does not include a preprocessor).
Derek M Jones tel: +44 (0) 1252 520 667
Knowledge Software Ltd mailto:firstname.lastname@example.org
Applications Standards Conformance Testing http://www.knosof.co.uk
[lcc didn't have a preprocessor originally, but they added one several years
Return to the
Search the comp.compilers archives again.