[antlr-interest] How to use ANTLR to find function pointers

Jim Idle jimi at temporal-wave.com
Wed Jul 18 06:35:57 PDT 2007


There is a C grammar in the examples on the download page, which
includes variable/type scope tracking. It shuodl be a trivail matter to
add the function stuff.

 

Jim

 

From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of amol Bhagavat
Sent: Tuesday, July 17, 2007 10:49 PM
To: antlr-interest at antlr.org
Subject: [antlr-interest] How to use ANTLR to find function pointers

 

Hi,

 

I am developing a tool where i need to parse a c project code and find
out all occurances of function pointers along with all assignments. Also
i need to create  a output where i can specify the files where the
function pointers and functions are defined.While finding function
pointers i also need to aware of variable scope, since there can be
occurance of local variable with same name.

I am very new to ANTLR ...

Please let me know can i use ANTLR ?  how i can use it?

My intention is to find out all the possibilities of function call
through a function pointer.

 

Thanks in advance...

 

Regards,
Amol

 

  

________________________________

Yahoo! Answers - Get better answers from someone who knows. Try it now
<http://uk.answers.yahoo.com/;_ylc=X3oDMTEydmViNG02BF9TAzIxMTQ3MTcxOTAEc
2VjA21haWwEc2xrA3RhZ2xpbmU> .

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070718/31a2165d/attachment.html 


More information about the antlr-interest mailing list