An implementation of the Troll programming language in Objective Caml.
Troll is a domain-specific programming language for describing dice rolls.
This project is based on the original implementation of Troll in Standard ML (MoscowML) and the paper describing the language (see resources).
In addition to the standard OCaml tools (ocamlc
, ocamllex
, ocamlyacc
) available in the official OCaml distributionst he project uses Core
library and corebuild
for compiling.
Run the command ./build.sh
to generate the binary.
To test that the program, try the following echo "d20" | ./troll
- Port the distribution features available in the SML implementation
- Improve the command-line interface, add option flags
- Add examples of troll programs