All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eugene Rosenzweig <eugene259@internode.on.net>
To: linux-c-programming@vger.kernel.org
Subject: Re: C/C++ File Parser
Date: Fri, 06 Jul 2007 01:20:52 +1000	[thread overview]
Message-ID: <f6j28g$pna$1@sea.gmane.org> (raw)
In-Reply-To: <11445958.post@talk.nabble.com>

mudassir wrote:
> Hi All,
> 
> I am in search of a snippet that could parse a C/C++ source file and
> give out as output different information on it. For example
> 
> 1. Signature of function defined in a file.
> 2. Name of Global Variables declared.
> 3. Files dependencies..(#include).
> 
> Can you help?
> 
> thanks,
> mudassir. 

Some parser engines out there would have ANSI/K&R C grammar already
available for you to integrate into your program. Have a look at some in
this list: http://en.wikipedia.org/wiki/List_of_Parsers


  parent reply	other threads:[~2007-07-05 15:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05 12:57 C/C++ File Parser mudassir
2007-07-05 15:09 ` Uday K Verma
2007-07-05 15:20 ` Eugene Rosenzweig [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-07-05 13:29 Leslie P. Polzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='f6j28g$pna$1@sea.gmane.org' \
    --to=eugene259@internode.on.net \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.