You can find how its IDL looks like from source codes in the
Note that its design is highly unstable and could be changed.
Also the feature set is incomplete yet.
The easiest way to give a try to use Nirum is downloading a nightly build.
We currently provides the prebuilt binaries of the following platforms:
In order to compile a Nirum package (
examples/) to a Python package:
$ mkdir out/ # directory to place generated Python files $ nirum -t python -o out/ examples/
For more infomration, use
$ nirum --help Nirum: The IDL compiler and RPC/distributed object framework Usage: nirum [-v|--version] (-o|--output-dir DIR) (-t|--target TARGET) DIR Nirum compiler 0.3.0 Available options: -h,--help Show this help text -v,--version Show version -o,--output-dir DIR Output directory -t,--target TARGET Target language name. Available: docs, python DIR Package directory
If you already installed Haskell Stack, you can build the project
in the same way to build other Haskell softwares:
$ stack build
You can run the test suite of Nirum:
$ stack test # unit test for compiler $ ./lint.sh # style lint
Related projects & tools
- nirum-python: The official Python
runtime library for Nirum.
- nirum.tmbundle: TextMate bundle
for Nirum. Also can be used by IntelliJ IDEA (or any other JetBrain's
IDEs, e.g., PyCharm, WebStorm) through TextMate bundles support.
- nirum.vim: Nirum syntax highlighter for
- sublime-nirum: Nirum package for
Sublime Text 3.