For the complete documentation of the ohuac
compiler see the standalone
compiler section of the ohua
documentation
For a complete list of the options available use the --help
flag.
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-linux
or
ohuac-osx
) from the releases page.
Required tools:
stack
https://haskellstack.org
-
Clone the repository
git clone https://github.com/ohua-dev/ohuac
-
Build the program
stack install
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
ohuac
and copies it to~/.local/bin
. If you do not wish this usestack build
instead and find the path of the binary usingstack exec -- which ohuac
afterwards
The test-resources directory contains example namespaces
using both the ohua S-Expression syntax (ohuas
) and C/Rust-like syntax (ohuac
).