Source code parser in progress

1 view
Skip to first unread message

Alex Blewitt

unread,
Apr 7, 2009, 5:54:00 PM4/7/09
to objective...@googlegroups.com
I'm working on a source code parser (at least, extending the CDT DOM
parser for the time being) to parse Objective-C code. You'll probably
notice a bunch of syntax errors if you update to the latest which are
being reported because of unknown things I've yet to implement.

I have managed to get NSString literals (@"foo") and Objc message
sends [foo bar] as parsing, albeit not correctly represented in the
code at the moment. But it should mean that if you have a vanilla C
function with an Objc script (ala main/NSLog) then it should parse.
Anything else, including @interface, @implementation etc. aren't
supported at the moment, or at least will give syntax errors.

The objc parser is just investigation at this stage, but it's stored
in SVN in case anyone else wants to review or look at the code. It's
probably still in a state of flux, and whilst it might work it's
probably still too early to do much.

Alex

Reply all
Reply to author
Forward
0 new messages