Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 896 Bytes

README.md

File metadata and controls

42 lines (25 loc) · 896 Bytes

amath

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.

Usage

AsciiMath is read and the equivalent MathML is printed.

$ echo "x^2" | amath
<msup><mi>x</mi><mn>2</mn></msup>

Installing

Use make to build and install amath and the shared library libamath.

make
make install

The unit tests can also be run from make.

make test

The tests can be checked for memory leaks.

make memory

The official AsciiMath unit tests can be run with:

make otest

Legal

This software is in the public domain. Anyone is free to use and distribute it for any purpose.

amath is maintained by Cameron Moy.