Today, after nearly two months of work, I am pleased to announce the release of Magnificalc's first and most essential component, exprtreelib! exprtreelib performs the following functions:
- Parsing of expressions
- Construction of expression trees
- Representation of expressions as trees
- Constant
- Variable (with attached coefficient)
- Function
- Subexpression
An implementation of a symbol table using a Rudolf Bayer red-black tree (1972) is included in the library. The symbol table is a required argument to the isAbstract and evaluate methods of interface INode.
The parser is written with ANTLRv3, and the objects are written in Java. The unit tests are written with the ScalaTest BDD framework.
To get the source and compile it, visit the project site at http://moosna-saltlakecity.github.com/exprtreelib! Happy coding!
No comments:
Post a Comment