The libcspm package

[Tags: bsd3, library]

[Skip to ReadMe]

Properties

Versions0.1, 0.1.1, 0.1.2, 0.2.0, 0.2.1, 1.0.0
Change logCHANGELOG.txt
Dependenciesarray (>=0.3), base (==4.*), bytestring (>=0.9), containers (>=0.4), directory (>=1.0), filepath (>=1.2), graph-wrapper (>=0.2), mtl (>=2.0), pretty (>=1.0) [details]
LicenseBSD3
Copyright(c) 2011 Thomas Gibson-Robinson
AuthorThomas Gibson-Robinson <thomas.gibsonrobinson@gmail.com>
MaintainerThomas Gibson-Robinson <thomas.gibsonrobinson@gmail.com>
CategoryConcurrency
Home pagehttps://github.com/tomgr/libcspm
Bug trackerhttps://github.com/tomgr/libcspm/issues
Source repositoryhead: git clone https://github.com/tomgr/libcspm
this: git clone https://github.com/tomgr/libcspm(tag release-0.1.2)
UploadedTue Oct 4 11:22:16 UTC 2011 by ThomasGibsonRobinson
Downloads939 total (45 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for libcspm-0.1.2

libcspm

This library provides a FDR-compliant parser, type checker and (experimental) evaluator for machine CSP files.

There is also a program, cspmchecker, that makes use of this library to provide command line type checking.

Installation

The simplest method is to install via Hackage. cabal install cspmchecker will install cspmchecker and its dependencies.

Otherwise, if you obtain a source distribution then the following commands will install libcspm.

cabal configure
cabal build
cabal install

To install cspmchecker, firstly install libcspm as above, then change directory to cspmchecker and run the following commands.

cabal configure
cabal build
cabal install

This should make cspmchecker available from your command line shell (if not check that the location cabal installs binaries to is on your $PATH).

Usage of cspmchecker

From a command line shell simply do cspmchecker file.csp to type check the files. Any error messages will be printed out. For example:

$ cspmchecker ucsexamples/chapter04/abp.csp 
Checking ucsexamples/chapter04/abp.csp.....
ucsexamples/chapter04/abp.csp:80:36-39:
    Couldn't match expected type Int.Int with actual type Int
    In the expression: bit
    In the expression: ack == bit
    In the expression: (ack == bit)

Documentation of the type system is forthcoming.

Usage of libcspm

See http://hackage.haskell.org/package/libcspm for documentation.

Testing

To test libcspm run the following commands.

cabal configure --enable-tests
cabal build
cabal test

Bug Reports

Please files bug reports at https://github.com/tomgr/libcspm/issues. Please provide a minimal example script that exhibits the error (if possible).