Libraries for programming with Session Types in C/C++. This is a core library for internal tree representation of Session Types. See http://mrg.doc.ic.ac.uk/ for details.
Documentation are automatically generated from the latest source on github.
-
At the project root, fetch the external dependencies with git
$ git submodule init && git submodule update
-
Generate build files with
CMake
$ cd build && cmake ..
-
While in the
build/
directory, runmake
to build the files, thenmake test
to run the unit tests to make sure everything is working.$ make && make test
-
You will find libsesstype.so in the
build/
directory.
For both C and C++, include sesstype/sesstype.h
to get started.
#include <sesstype/sesstype.h>
int main(int argc, char *argv[])
{
// If C++
sesstype::Protocol *protocol = sesstype::Protocol("Example");
delete protocol;
// If C
st_tree *prot = st_tree_mk_init("Example");
st_tree_free(prot);
return EXIT_SUCCESS;
}