package beluga
Not available on OCaml 5.5Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=db38afa81edcccce71b1af2285283cef
sha512=7a0e7464233faa0f82026f2800fe105a1aade96abe88e4f9e62ac5e1a6b3b160240ced250b5bd16b86fcd48ece48d1e51cb94dcb4ac16d1fbc0dcd3f2b1a2ea1
Description
Added to opam-repository:
README
Beluga 
Beluga is a functional programming language designed for reasoning about formal systems. It features direct support for object-level binding constructs using higher order abstract syntax and treats contexts as first class objects.
Installation & Configuration Guide
The following packages must be installed to use Beluga:
- opam http://opam.ocaml.org/doc/Install.html
- ocaml 4.05.0+: http://caml.inria.fr/download.en.html
- extlib: http://code.google.com/p/ocaml-extlib/downloads/list
- gen: https://github.com/c-cube/gen
- linenoise: https://github.com/ocaml-community/ocaml-linenoise
- sedlex: https://github.com/ocaml-community/sedlex
Optional dependencies (for improved beli mode):
General instructions
$ YOUR_PKG_MNGR install opam
$ opam init --bare
$ opam switch create ocaml-base-compiler.4.09.0
$ eval $(opam env)
# from the Beluga directory
$ opam install --deps-only .The interactive mode is greatly improved if you have rlwrap installed, so you might also want to consider:
$ YOUR_PKG_MNGR install rlwrapBuilding
Compile by running "make" from the Beluga directory.
$ makeYou can now run Beluga programs with the newly "beluga" executable in the "bin" directory
$ ./bin/beluga path/to/program.belTip: Running make clean will clean the directory of compilation results
Interactive Mode
For interactive proofs, we recommend using Harpoon. A detailed list of commands and tactics is available here.
Beluga-mode for GNU Emacs
Beluga includes a major mode for programming in Emacs. The elisp file is located in the ./tools directory. To configure Beluga-mode:
Update your ~/.emacs or ~/.emacs.d/init.el file with the lines written below. XEmacs users must update ~/.emacs or ~/.xemacs/init.el with the same text. Create any of these files if they do not exist already.
- You should replace path/to/beluga with the actual path of the Beluga directory. (add-to-list 'load-path "path/to/beluga/tools/") (load "beluga-mode.el")
- NOTE: Feel free to move the beluga-mode.el file to another directory so long as you add its location to the Emacs load-path.
- Restart Emacs. Emacs will now launch in Beluga-mode automatically when you open a Beluga program.
Dependencies (7)
Dev Dependencies
None
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building beluga with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 1.1.3 | n/a | good | good | good | good |
| 1.0 (this version) | good | good | n/a | n/a | n/a |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure