Skip to content

juusaw/troll-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published