help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to parse linear equations


From: Rui Maciel
Subject: Re: how to parse linear equations
Date: Sat, 16 Jan 2010 02:02:49 +0000
User-agent: KMail/1.12.4 (Linux/2.6.31-18-generic; KDE/4.3.4; x86_64; ; )

Michael Chen wrote:
> Dear there,
> 
> The input I have is linear equation like:
> 
> 2 * x + ( x - y ) = x + 1
> 
> And I would like to get at end
> 
> 2 * x - y = 1
> 
> I studied the calculator example, and be able to build ast tree.
> however  I have no way to reduce it. Please give me an example or
> link. Thanks.

The parser is only there to extract information from a given input. What you 
do with the information extracted from that input is only up to you and 
doesn't involve the parser in any way.


Rui Maciel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]