[antlr-interest] Objective-C Codegen?
Hiroyuki Sato
hiro at kanagawa-u.ac.jp
Wed May 15 22:04:37 PDT 2002
I'm newbie Objective-C and ANTLR
As far as I know, gsantlr is one of Code Generator for Objective-C.
http://www.gnustepweb.org/TDocs/gsantlr/
gsantlr still loacking many features.
for example, Exception Handler.
I modified gnantlr for my study (ObjC and ANTLR)
and succeed to translate some example programs
calc, HTML and so on.
But I could not translate many example which using Exception Handler
So, I also want to know to translate a try/catch/throw into ObjC.
For example, how to translate following code into Objective-C?
try {
...
...
try { // try in catch
} catch( FooException e ){
} catch( Exception ex ){
}
} catch ( BarExceptionException e ){
try { // try in catch
...
...
} catch (Exception ex ){
throw ex;
}
} catch ( Exception e ){
throw e;
}
On 2002.05.16, at 02:08, mzukowski at yci.com wrote:
> No one is that I know of. I've thought about it before, and would love
> to
> see one. The main thing lacking that I know of is exception
> handling. I
> fell off the NeXT bandwagon around NeXTSTEP 3.1 :( Have things changed
> for
> exception handling, or is it still macros wrapped around setjmp/longjmp?
> How would you translate a try/catch/throw into ObjC?
>
> I would be happy to help, either through this list or as a contractor.
>
> Monty
>
> www.codetransform.com
>
>
>> -----Original Message-----
>> From: Chris Rudolph [mailto:chris_rudolph at apple.com]
>> Sent: Wednesday, May 15, 2002 9:55 AM
>> To: antlr-interest at yahoogroups.com
>> Subject: [antlr-interest] Objective-C Codegen?
>>
>>
>> Hi all,
>>
>> Is anyone working on an objective-c codegen option? Given the
>> closeness to
>> Java, I'd imagine it wouldn't be too much work.
>>
>> Cheers,
>> Chris.
>>
>> --
>> Chris Rudolph, Apple Computer, Inc.
>> rudy at apple.com
>>
--
Hiroyuki Sato
Kanagawa University.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list