From: Andreas Löscher on
Hi,
I am looking for an easy to use parser. I am want to get an overview
over parsing and want to try to get some information out of a C-Header
file. Which parser would you recommend?

Best,
Andreas

From: Jason Scheirer on
On May 2, 12:54 pm, Andreas Löscher <andreas.loesc...(a)s2005.tu-
chemnitz.de> wrote:
> Hi,
> I am looking for an easy to use parser. I am want to get an overview
> over parsing and want to try to get some information out of a C-Header
> file. Which parser would you recommend?
>
> Best,
> Andreas

Pyparsing: http://pyparsing.wikispaces.com/
I've abused the lexers built in to Pygments ( http://pygments.org/ ) a
few times to decent effect too.
From: Martin v. Loewis on
Andreas Löscher wrote:
> Hi,
> I am looking for an easy to use parser. I am want to get an overview
> over parsing and want to try to get some information out of a C-Header
> file.

To get information from a header file, try Tools/scripts/h2py.py

Regards,
Martin
From: dmtr on
On May 2, 12:54 pm, Andreas Löscher <andreas.loesc...(a)s2005.tu-
chemnitz.de> wrote:
> Hi,
> I am looking for an easy to use parser. I am want to get an overview
> over parsing and want to try to get some information out of a C-Header
> file. Which parser would you recommend?

ANTLR
From: Chris Rebert on
On Sun, May 2, 2010 at 10:10 PM, dmtr <dchichkov(a)gmail.com> wrote:
> On May 2, 12:54 pm, Andreas Löscher <andreas.loesc...(a)s2005.tu-
> chemnitz.de> wrote:
>> Hi,
>> I am looking for an easy to use parser. I am want to get an overview
>> over parsing and want to try to get some information out of a C-Header
>> file. Which parser would you recommend?
>
> ANTLR

I don't know if it's that easy to get started with though. The
companion for-pay book is *most excellent*, but it seems to have been
written to the detriment of the normal online docs.

Cheers,
Chris
--
http://blog.rebertia.com