Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 974 Bytes

README.md

File metadata and controls

27 lines (15 loc) · 974 Bytes

troll-lang

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).

Building the project

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

TODO

  • Port the distribution features available in the SML implementation
  • Improve the command-line interface, add option flags
  • Add examples of troll programs

Resources