LASCAr is a library for manipulating Labeled Transition Systems (LTS) in OCaml. LASCAr provides functions for
.dot format) and text (.tex format) representationsLASCAr provides implementations both for "generic" LTS (with or without state attributes) and for "specialized" versions :
The library makes a heavy use of functors to support genericity and to maximise code reuse.
The library API is documented here.
Some annotated code snippets can be found here
Other examples are provided in a dedicated directory.
Installation can also be carried by downloading compiling the source code from github :
git clone https://github.com/jserot/lascarcd lascarmakemake install.dot files, you will need to install the Graphviz suite of tools.Each example directory contains both a Makefile and a dune file to simplify building and running the example.
make buildmake run (or simply make)The latest command will also invoke the .dot file viewer to display the generated graphical representations of the systems. The name of this viewer is specified in the supplied Makefile and will probably have to be adjusted according to your Graphviz installation.