amath is a parser which converts AsciiMath to MathML. It uses the
leg parser generator. It is written so it may be ported to other
languages easily, but can certainly be used as a library itself.
AsciiMath is read and the equivalent MathML is printed.
echo "x^2 + y^2 = z^2" | amath
Use make to build and install amath and the shared library libamath.
make
make install
The amath unit tests can be run with the test target.
make test
The official AsciiMath unit tests can be run with the otest target.
make otest
The memory target uses valgrind to check for memory leaks in the
amath unit tests.
make memory
This software is in the public domain. Anyone is free to use and distribute it for any purpose.
amath is maintained by Cameron Moy.