https://github.com/athos/tetrlang
an esoteric language inspired by Tetris
https://github.com/athos/tetrlang
Last synced: 8 months ago
JSON representation
an esoteric language inspired by Tetris
- Host: GitHub
- URL: https://github.com/athos/tetrlang
- Owner: athos
- Created: 2010-07-04T13:34:44.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-07-08T02:56:19.000Z (over 15 years ago)
- Last Synced: 2025-04-07T11:51:28.377Z (9 months ago)
- Language: Clojure
- Homepage:
- Size: 4.9 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkdn
Awesome Lists containing this project
README
tetrlang: A Tetrlang Interpreter
================================
Tetrlang is an esoteric language inspired by Tetris.
The instructions in Tetrlang are represented by Tetris
blocks (tetraminos). Each tetramino has a corresponding
Brainfuck instruction.
Prerequisites
-------------
For building Tetrlang interpreter by yourself, you must have:
* Leiningen (http://github.com/technomancy/leiningen)
But, you don't need it for just running the interpreter.
Building
--------
To build tetrlang, type the following commands:
$ cd tetrlang
$ lein uberjar
Dependencies
------------
tetrlang depends on:
* Clojure 1.1.0
* clojure-contrib 1.0
These dependencies can be downloaded automatically using:
$ lein deps
Usage
-----
To run tetrlang, just do:
$ java -jar tetrlang-standalone.jar
You can try out the interpreter with example codes in
the `examples' directory. Specify '-Dfile.encoding=UTF-8'
option if your environment's default character encoding
is other than UTF-8.
$ java -Dfile.encoding=UTF-8 -jar tetrlang-standalone.jar -f examples/hello.tetr
The interpreter has several options. To display all its
options and their descriptions, run it with `--help' option.
$ java -jar tetrlang-standalone.jar --help
License
-------
Copyright (C) 2010 OHTA Shogo
Distributed under the MIT License.