jusito / WALi-OpenNWA

Home for the WALi weighted automaton library and OpenNWA nested-word automaton library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WALi (and OpenNWA)

Prerequsites for OpenNWA not listed because compilation is broken.

Prerequsites:

  • Boost (old versions are OK; we actually variously use 1.33.1 and 1.42)
  • Cmake
  • clang++

Optional prerequsites for Doxygen documentation:

  • Doxygen (we use 1.7.1)

Optional prerequsites for Latex documentation:

  • Latex (we use TexLive 2010, but it has also built with MikTex)
  • pygments
  • dot2tex (optional even if you are building the documentation; we have 2.8.7)

Building the Library

Building OpenNWA is currently broken, because it is not used by PhASAR.

Building Wali:

$ mkdir build/
$ cd build/
$ cmake ..
$ make

Installing Wali:

  1. Building Wali
  2. make install

Building Documentation

To get Doxygen output, run doxygen Doxyfile from the top-level directory. By default, it will generate HTML output to Doc/doxygen/html and Latex output to Doc/doxygen/latex. (Run make in the latter directory to build the Latex to a PDF.)

To build the NWA documentation, change to Doc/opennwa/ and run pdflatex on opennwa.tex, passing -shell-escape. (-shell-escape is required by the pygmentize package, used for source-highlighting the example code at the beginning.) If you would like to rebuild the figures (though this is not necessary if you do not change them), change to Doc/opennwa/Figures and run make. Note that a couple of the figures used in the official version of the NWA manual have been modified by hand, and regenerating them will cause those changes to be lost.

NWA documentation

The NWA documentation is a little bit... strange. It doesn't quite know what it wants to be. It's way too long to just sit down and read, but is probably less convenient to use as a reference than, say, Doxygen comments would be. (The exception is the function tables at the end of the document.) But... we also have Doxygen comments, and they aren't usually the same. So at some point in the future, we need to unify the comments. (In virtually all cases, the Latex documentation is far more detailed.)

My suggestion is to look over sections 1 ("Library Overview") and 3 ("The NWA class"), and then refer to the more detailed sections as appropriate.

About

Home for the WALi weighted automaton library and OpenNWA nested-word automaton library

License:Other


Languages

Language:C++ 96.0%Language:Python 3.5%Language:SWIG 0.3%Language:CMake 0.1%Language:C 0.0%Language:Shell 0.0%