my current requirement is to support a formula parser for our application. although it supports just a subset of the common MS Excel functions, what's trivial for me is the support for grouping symbols. we had a similar requirement back in college in parsing mathematical expressions but we ended up not supporting it. some groups, especially the programming geeky guys like
wyu had them and now is the time that i write my own.
i'm looking for algorithms for this and i've found some like converting infix to postfix,
bison parser, etc. there are also available libraries (for
C++,
java and even in
.NET) for this but i think i will be coding my own (or maybe not) so i finally had an experience with this parsing routine. automated unit tests will be beneficial for requirements like this.
Posted
08-29-2006 1:24 PM
by
jokiz