The standalone Ohua compiler:
For the complete documentation of the
ohuac compiler see the standalone
compiler section of the ohua
For a complete list of the options available use the
Prebuilt binaries are available for 64bit Linux and OSX. Provided for each release by Travis CI.
Simply download the appropriate executable for you platform (
ohuac-osx) from the releases page.
Building from source
Clone the repository
git clone https://github.com/ohua-dev/ohuac
Build the program
This downloads and builds all dependencies, as well as the Haskell compiler
ghc, should it not be present already. It should not interfere with any system-level libraries, Haskell ecosystems etc.
It builds the executable
ohuacand copies it to
~/.local/bin. If you do not wish this use
stack buildinstead and find the path of the binary using
stack exec -- which ohuacafterwards
The test-resources directory contains example namespaces
using both the ohua S-Expression syntax (
ohuas) and C/Rust-like syntax (