This is a fun project with the goal of learning about parser implementations.
In the project root:
mkdir build
cd build
cmake ..
make
In the build directory:
cmake .. -DENABLE_DOXYGEN=TRUE
make
make doxygen-docs
The documentation can be found in the html
directory.
To view the documentation just open html/index.html
with any browser.
cd build
ctest
cd build/src
./eval ../../data/data.xml ../../data/operations.xml > results.xml
- The tests are very verbose and could benefit from implementing a comparison operator for the XML elements and the XML document,
- The tests currently read from the file system which is an unnecessary dependency on hardware. Better: read from a hardcoded string or similar,
- Tests for the evaluation function are missing.