[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: obj-c grammar
From: |
Nicola Pero |
Subject: |
Re: obj-c grammar |
Date: |
Thu, 2 Jan 2003 12:58:02 +0000 (GMT) |
> Dear steppers,
>
> I'm looking for some advice regarding an objective-c parser. Where can I
> find a complete grammar of the language and what tool is better to use
> to write a fast parser for objective-c: bison (as done in gcc?) or
> antlr?
I'm not sure what is faster. A full parser for Objective-C should include
a full parser for C -- I actually expect the C parser to be most of the
work. So maybe you want to start from some free software C parser on the
net, and just extend it to support Objective-C.
I believe NeXT/Apple's manual on Objective-C (available free on the web)
contains a grammar for Objective-C at the end. I'd say that the
definitive source is actually the GCC bison grammar itself.
Hope that helps.
- Re: obj-c grammar,
Nicola Pero <=