Skip to content

sid-code/nim-thue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nim-thue

This is an interpreter for the Thue programming language written in Nim. I made this mainly to experiment with the Thue language.

The implementation can run any Thue program but I've added functionality described here. The feature is optional and is described along with the rest below.

Requirements

You need the Nim compiler to compile the interpreter.

Usage

Compiling

$ nim c -d:release thue.nim

This creates an executable in your directory called thue.

Running

$ ./thue [options] program.t
  options:
    -l, --left-to-right         Apply rules deterministically left to right
    -r, --right-to-left         Apply rules deterministically right to left
    -d, --debug                 Debug the program

    -nn, --no-newlines          Don't print newlines along with ~ directives,
                                instead only print newlines when ~ is alone

There are example programs in the examples directory.

About

A Thue interpreter written in Nim

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages