• 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
Answer: Bison with Objective-C Semantic Actions? Works
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Answer: Bison with Objective-C Semantic Actions? Works


  • Subject: Answer: Bison with Objective-C Semantic Actions? Works
  • From: Thomas Wetmore <email@hidden>
  • Date: Thu, 11 Mar 2010 17:38:37 -0500

Just a quick thank-you to those who responded to my question about using bison to generate a language intepreter in an Cocoa Foundation/Xcode/Objective-C environment. Xcode does everything needed to make it seamless.

I named the yacc file Interpreter.ym and made the semantic value type for all terminals and non-terminals on the parsing stack to be the general Objective-C id type and have had no problems. My semantic actions are all written using Objective-C messaging with the $$, $1, ..., $n stack variables. No perspiration; no worries.

Thanks again for the great help available from this group.

(Cross posted to the Xcode group since Xcode makes working with yacc/bison almost trivial.)

Tom Wetmore, Chief Bottle Washer, DeadEnds Software

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Need help with scrolling marquee
  • Next by Date: Switching methods in private classes in Apple frameworks
  • Previous by thread: Re: [MEET] CocoaHeads-NYC tonight - NSOperation
  • Next by thread: Core Data: inverse relationship not updated until next Run Loop
  • Index(es):
    • Date
    • Thread