Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #15726 > unrolled thread

C parsing help

Started byvictor <ramkumar2579@gmail.com>
First post2012-01-10 22:29 -0800
Last post2012-01-11 18:29 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.lang.c


Contents

  C parsing help victor <ramkumar2579@gmail.com> - 2012-01-10 22:29 -0800
    Re: C parsing help Keith Thompson <kst-u@mib.org> - 2012-01-10 22:59 -0800
    Re: C parsing help Nobody <nobody@nowhere.com> - 2012-01-11 18:29 +0000

#15726 — C parsing help

Fromvictor <ramkumar2579@gmail.com>
Date2012-01-10 22:29 -0800
SubjectC parsing help
Message-ID<a9df6fd6-b144-4562-b1e5-3de0c33af76a@n30g2000yqd.googlegroups.com>
Hi,
     Please help.  dont know if i am posting on the right group.
     when gcc parses declarations in a C file, is it possible to make
gcc call some function hooks?
Like if it successfully parsed a structure , it should call a
callback. with the structure it has parsed.
Regards.

[toc] | [next] | [standalone]


#15728

FromKeith Thompson <kst-u@mib.org>
Date2012-01-10 22:59 -0800
Message-ID<lnr4z63esg.fsf@nuthaus.mib.org>
In reply to#15726
victor <ramkumar2579@gmail.com> writes:
>      Please help.  dont know if i am posting on the right group.
>      when gcc parses declarations in a C file, is it possible to make
> gcc call some function hooks?
> Like if it successfully parsed a structure , it should call a
> callback. with the structure it has parsed.

You might get better answers in gnu.gcc.help.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
    Will write code for food.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

[toc] | [prev] | [next] | [standalone]


#15761

FromNobody <nobody@nowhere.com>
Date2012-01-11 18:29 +0000
Message-ID<pan.2012.01.11.18.29.20.672000@nowhere.com>
In reply to#15726
On Tue, 10 Jan 2012 22:29:58 -0800, victor wrote:

> when gcc parses declarations in a C file, is it possible to make
> gcc call some function hooks?
> Like if it successfully parsed a structure , it should call a
> callback. with the structure it has parsed.

Not without modifying gcc.

How would you define these functions such that gcc could execute them? gcc
is a C compiler, not a C interpreter (or any kind of interpreter).

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.c


csiph-web