Re: Calculation by string
Re: Calculation by string
- Subject: Re: Calculation by string
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sun, 18 May 2003 17:34:40 +0200
At 16:57 Uhr -0500 17.05.2003, Robert Burns wrote:
I would recommend using Bison. In fact, the first Bison
tutorial that you go through shows you how to make a calculator.
Bison is a really easy-to-use tool as well - it only took me the
better part of an afternoon to get a basic parser going from scratch.
Just be careful to massage the code a little after it's been generated.
In one project we found out that a BISON (or was it YACC?)-generated
piece of code would simply write errors to the console when they
occurred and then called exit(). Of course, we didn't want to do that
from our XPress plugin, because we'd be shooting down the entire
app...
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.