|Parsing a mathematical expression. Looking for an describing algebra ( email@example.com (1997-11-11)|
|Re: Parsing a mathematical expression. Looking for an describing algeb firstname.lastname@example.org (Sergey Solyanik) (1997-11-13)|
|Re: Parsing a mathematical expression. Looking for an describing algeb email@example.com (Thorsteinn Sigurdsson) (1997-11-18)|
|From:||firstname.lastname@example.org (Henk Linde)|
|Date:||11 Nov 1997 14:33:32 -0500|
|Keywords:||parse, question, comment|
More than 10 years ago I wrote a program for my first year computing
science in university called expressions. This is a simple parser for
simple mathematical expressions. The most important was to have a good
algebra to start from. Our's looked like this:
expression : term + term; term - term; term .
term : factor * factor; factor / factor; factor.
factor : sign factor
sign : + ; -
I want to expand this to include matrices,functions and user defined
functions. Does anyone here have such an algebra lying around ? Could
you mail it to me ? Or can you point me where I can find one ?
Greetings from the Netherlands,
[Sounds like Matlab. -John]
Return to the
Search the comp.compilers archives again.