[Prev][Next][Index]
Re: Urgent doubt.
- From: Beata Winnicka <bfatyga@slab.extreme.indiana.edu>
- Date: Mon, 1 May 95 09:15:11 -0500
- To: "Arun P. Muthukumar" <arunp@engr.uky.edu>
- Subject: Re: Urgent doubt.
- Cc: sage-bugs@rainier.extreme.indiana.edu
- Sender: owner-sage-bugs@extreme.indiana.edu
> I have a doubt regarding forming a SgExpression.
>
> Assume that I use 'gets(char *)' to get an expression from
> the user. So the program asks something like:
>
> Enter Expression:
>
> for which the user would enter n1 * n2 / n3
>
> Now, how can I make this as an instance of (SgExpression *)
> example: SgExpression *exp;
>
> I want 'exp' to be (n1 * n2 / n3)
>
> Is there a direct way by which I can do this. I tried several
> methods, but nothing seems to work fine.
>
> An early reply would be very much appreciated.
>
> thanks arun
>
No, there is no direct way to do what you want. Basically , you would have
to write your own expression scanner and parser. --Beata