Re: C parser

"jacob navia" <>
4 Aug 2004 02:43:43 -0400

          From comp.compilers

Related articles
C parser (Siddharth Choudhuri) (2004-07-28)
Re: C parser (Rajaram) (2004-08-04)
Re: C parser (jacob navia) (2004-08-04)
Re: C parser (Daniel C. Wang) (2004-08-04)
Re: C parser (2004-08-05)
C parser (=?gb2312?q?sky=20yan?=) (2004-08-05)
Re: C parser (2004-08-10)
Re: C parser (Siddharth Choudhuri) (2004-08-11)
C parser (DAVID) (1997-07-16)
[2 later articles]
| List of all articles for this month |

From: "jacob navia" <>
Newsgroups: comp.compilers
Date: 4 Aug 2004 02:43:43 -0400
Organization: Wanadoo, l'internet avec France Telecom
References: 04-07-079
Keywords: C, parse
Posted-Date: 04 Aug 2004 02:43:43 EDT

"Siddharth Choudhuri" <> a écrit
> I am looking for a C parser that can generate a list of all variable
> names, their type (int, char...) and scope (auto, static, ...) by reading
> a C source file.
> Also, is there any way to generate this information using an option to the
> compiler (say, using gcc) ?

Download the lcc-win32 compiler

then type
\lcc\bin\browsegen myfile.c

then look at the generated text file myfile.xrf

All variables, #defines, types, globals, etc etc are
there with the line where they are defined.

Post a followup to this message

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