• 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: Magnus Strand <email@hidden>
  • Date: Fri, 14 Jan 2005 13:02:10 +0100

Hi Simon,

You need to learn about parsing (e.g. recursive descent parser)
and math expression trees.

Here you can read a bit more:
http://www.cs.wustl.edu/~cytron/101Pages/f00/Labs/9/
http://users.easystreet.com/jkirwan/new/parsing.html

Regards,
Magnus Strand

Simon alias Trax 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 ?



_______________________________________________ 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: 
 >Convert String into Expression (From: "Simon alias Trax" <email@hidden>)

  • Prev by Date: Re: Cocoa/Objective-C's Relative Performance
  • Next by Date: Re: Know about Mutability
  • Previous by thread: Convert String into Expression
  • Next by thread: Re: Convert String into Expression
  • Index(es):
    • Date
    • Thread