discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interface parser


From: Richard Frith-Macdonald
Subject: Re: Interface parser
Date: Mon, 26 Jul 2004 16:02:33 +0100


On 26 Jul 2004, at 15:56, stefan@agentfarms.net wrote:

Hello,

There are projects parsing Objective-C header files, such as autodoc, gorm or perhaps others not known. I would like to ask, if there is one that can I use to query list of instance variables from header files? It does not have to be
idiot-proof, it just have to accept decent source code.

I want to get list of variables + their types. Best thing would be to be able to get additional information, perhaps present in comments after each variable.

Can be existing conde extracted from those projects and reused as stand-alone
parser class? Does anyone have exact pointers to where I should look?

The AGSParser class from autogsdoc (base/Tools) probably does what you want (as well as a lot of other stuff you most likely don't want), extracting information into a property-list. You can call -parseFile:isSource: to do this, then examine the
property list returned.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]