Look up the Bison docs- There is an example to do just this in the info
pages.
Shanker
(Look at the RPN calc and others)
----- Original Message -----
From: "M.K.Laha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 06, 2000 8:52 AM
Subject: Re: [ilug-cal] c prog... under linux
> If I understand the phrase "solve equation strings" correctly, then
> you wish to evaluate the value of a mathematical function for a given
> value of the argument.
>
> If that is so, then as far as I know, there is no easy way of doing it
> at runtime. Your program (which needs the value of the expression) has
> to have an interpreter that evaluates the function which you provide
> at runtime. You might like to write such an interpreter, though!
> Kernighan and Pike describe, in all the detail you wish, just such
> an interpreter towards the end of their wonderful book.
>
> If anyone has an easier solution, I'd be very interested to learn about
> that.
>
> - Manas Laha
>
> Subhadeep panda wrote:
> >
> > hello..
> > I was wondering if I could solve equation strings
> > runtime thru my C prog i.e without compiling
> > everytime
> > I wanted to evaluate a new string ...
> > thank you
>
> --
> To unsubscribe, send mail to [EMAIL PROTECTED] with the body
> "unsubscribe ilug-cal" and an empty subject line.
> FAQ: http://www.ilug-cal.org/help/faq_list.html
>
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/help/faq_list.html