Copilot libraries that use the Copilot language
Haskell
Pull request Compare This branch is 12 commits ahead of seni:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Copilot/Library
.gitignore
LICENSE
README.md
Setup.hs
copilot-libraries.cabal

README.md

STOP! The official Copilot repos are now at https://github.com/Copilot-Language/.

Overview

copilot-libraries User-supplied libraries for Copilot, including linear-temporal logic, fault-tolerant voting, regular expressions, etc.

Copilot is a stream (i.e., infinite lists) domain-specific language (DSL) in Haskell that compiles into embedded C. Copilot is similar in spirit to languages like Lustre. Copilot contains an interpreter, multiple back-end compilers, and other verification tools.

Examples

Please see the files under the Examples directory in the Copilot for a number of examples showing the syntax, use of libraries, and use of the interpreter and back-ends. The examples is the best way to start.

Installation

The Copilot library is cabalized. Assuming you have cabal and the GHC compiler installed (the Haskell Platform is the easiest way to obtain these), it should merely be a matter of running

     cabal install copilot-libraries

However, we strongly recommend you install Copilot, which installs copilot-libraries and other packages automatically. Execute

     cabal install copilot

Dependencies

copilot-libraries depends on the Atom to generate hard real-time C code.

Resources

copilot-libraries is available on Hackage.

Sources for each package are available on Github as well. Just go to Github and search for the package of interest. Feel free to fork!

Copyright, License

Copilot is distributed with the BSD3 license. The license file contains the BSD3 verbiage.

Thanks

We are grateful for NASA Contract NNL08AD13T to Galois, Inc and the National Institute of Aerospace, which partially supported this work.