Re: Calculation by string
Re: Calculation by string
- Subject: Re: Calculation by string
- From: publiclook <email@hidden>
- Date: Sat, 17 May 2003 11:24:12 -0400
The general solution to your request is to learn about parsers,
scanners, BNF, lex, yacc, flex, bison, and language theory. There are
many available samples for parsing arithmetic expressions not to
mention parsers for the whole C language and others. This is probably
the best defined most formally researched most mature aspect of
computer science.
On Saturday, May 17, 2003, at 04:37 AM, Lorenzo wrote:
Hi,
I read a string from a file.
This string contains:
@"x * y"
I already have two global int variables called "x" and "y".
Now I would like to get the product of x and y.
How should I do?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.