Lsystem-Compiler

Compiles Lsystem source code into Java.

Code Download ZIP Download TAR

How to Compile

Compiling the Lsystem compiler is easy. You need make and OCaml installed, then...

$ cd Lsystem-Compiler
$ make
$ cp _build/lsystem /usr/bin

Compiling an Lsystem program is easy. You need the Java compiler installed, then...

$ lsystem -c foo.ls

Running an Lsystem program is easy too. You need Java installed, then...

$ java foo

Example Programs

Note that these gists have a .py extension. This is merely to add some syntax highlighting. The Lsystem compiler requires the .ls file extension, NOT the .py extension.

Dragon Curve

Source

Output

Levy C Curve

Source

Output

Circuit Comet

Source

Output

Robot

Source

Output

Dancing Monster

Source

Output