• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NS .... lex/yacc ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NS .... lex/yacc ? (From: Thierry Passeron <email@hidden>)
 >Re: NS .... lex/yacc ? (From: Christian Brunschen <email@hidden>)

  • Prev by Date: Re: Can bindings be set to ignore certain values?
  • Next by Date: coredata batch fault/prefetch relationships
  • Previous by thread: Re: NS .... lex/yacc ?
  • Next by thread: coredata batch fault/prefetch relationships
  • Index(es):
    • Date
    • Thread