• 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: Converting a NSString into a math opertation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting a NSString into a math opertation


  • Subject: Re: Converting a NSString into a math opertation
  • From: email@hidden
  • Date: Thu, 20 Jun 2002 16:08:18 -0500

On Thursday, June 20, 2002, at 04:07 PM, email@hidden wrote:

Actually it is a full blown document application appropriately called "Math Paper" which uses quite a few cool things
and makes for a great example ... (basic IPC using pipes, notifications, etc. etc.)

If you download the code it should provide a nice
entry point to get a lot of what you want done.. easily extendible too..

Good luck!

-SJM



On Thursday, June 20, 2002, at 03:36 PM, Kyle Mandli wrote:

In one of O'Reilly's newest books called "Building Cocoa Applications" they describe a way to parse and execute math equations in a few of their examples. Programs called lex and yacc that together can take in a string, parse it and evaluate the string based on a set of rules. There are man pages that explain the syntax and what lex and yacc actually do quite well. There should be some source code on the O'Reilly site if you want to look into it further. Good luck.

Kyle Mandli

On Thursday, June 20, 2002, at 03:13 PM, Sherm Pendley wrote:

Fair warning: This is a somewhat self-serving answer, as I'm suggesting
my own project as a solution to your problem.

On Wednesday, June 19, 2002, at 05:56 PM, Rodrigo Varela Tabuyo wrote:

What I need to know is if there is a way of converting a NSString
directly into a math function

If you're not particularly tied to Objective-C, you could use my
CamelBones bridge to write your application in Perl. Perl has an eval()
function that does precisely what you need - it evaluates a Perl
expression in a string, and returns the result.

There is, in fact, a tutorial that describes almost exactly what you're
looking for. Unfortunately for me, it's written in Japanese, and
babelfish.altavista.com didn't do a very good job of translating it to
English. You may get better results with a Spanish translation.

<URL: http://perl.infoware.ne.jp/documents/Dekiru_CamelBones.html>

You can find CamelBones at:

<URL: http://camelbones.sourceforge.net>

sherm--

Never put off until tomorrow what you can do today. There might be a law
against it by that time.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Converting dfont files into "normal" TTF ones?
  • Next by Date: Re: Protecting Software w/ Software License Keys...
  • Previous by thread: Re: Converting a NSString into a math opertation
  • Next by thread: NSOutlineView newbie completely flummoxed
  • Index(es):
    • Date
    • Thread