• 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: Convert String into Expression
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert String into Expression


  • Subject: Re: Convert String into Expression
  • From: Philip Riggs <email@hidden>
  • Date: Fri, 14 Jan 2005 11:21:46 -0700

On Jan 14, 2005, at 4:57 AM, email@hidden wrote:


I'm trying to find a way to convert a string into a mathematical expression.
For example, the string "4 + 5" would return the numeric value 9.
Any hint ?


In the O'Reilly book "Building Cocoa Applications: A Step By Step Guide" there is a project that uses bison to build a fully functional calculator. Either read that chapter, or you can download the example code from the O'Reilly site and figure it out.

Philip

_______________________________________________
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


  • Prev by Date: Re: NSTextAttachment behavior
  • Next by Date: Re: Know about Mutability
  • Previous by thread: Re: Convert String into Expression
  • Next by thread: Inputting characters with Control key
  • Index(es):
    • Date
    • Thread