Re: NS .... lex/yacc ?
Re: NS .... lex/yacc ?
- Subject: Re: NS .... lex/yacc ?
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 24 Jan 2006 06:11:27 -0800
On Jan 24, 2006, at 6:02 AM, Christian Brunschen wrote:
On Tue, 24 Jan 2006, Thierry Passeron wrote:
Hello people,
I'm in need of writing a grammar lexer/parser. So I was wondering if
there was any existant AppKit (or other framework) class that
could do
the job... or should I stick with lex/yacc ?
I'd suggest using lemon (<http://www.hwaci.com/sw/lemon/>), which
generates a parser that is reentrant, and which also allows you to
put Objective-C code into your parser actions. You'll still have to
put to gether a lexer, but you could get away with using NSScanner
for that.
Goodness, what a tiny amount of code that is.
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden