Skip to content
An implementation of GrassMudHorse programming language in Haskell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.gitignore
COPYING
Input.hs
Makefile
README.md
Setup.hs
Tokens.hs
VM.hs
gmh2ws.hs
grassmudhorse.cabal
main.hs
ws2gmh.hs

README.md

GrassMudHorse Programming Language

A stack-based esoteric programming language inspired by Whitespace. The only tokens used are Chinese characters "", "", "" and "河蟹".

See the original web site for full documentation of the base language.

Installation

You need GHC 7.10.1 or above to compile and install the GrassMudHorse interpreter.

$ git clone git://github.com/soimort/GrassMudHorse.git
$ cd GrassMudHorse/
$ cabal install

Getting Started

On the GrassMudHorse programming language, read the tutorial from here.

The GrassMudHorse interpreter: (gmh)

$ gmh [file.gmh]

Whitespace to GrassMudHorse transcompiler: (ws2gmh)

$ ws2gmh <[file.ws] >[file.gmh]

GrassMudHorse to Whitespace transcompiler: (gmh2ws)

$ gmh2ws <[file.gmh] >[file.ws]

There are some examples (ported from equivalent Whitespace programs) in examples/ directory.

Hello world in GrassMudHorse:

$ gmh examples/hworld.gmh
Hello, world of Grass-Mud-Horse!

Print a notorious poetry of 99 Grass-Mud-Horses, adapted from 99 Bottles of Beer:

$ gmh examples/99-grass-mud-horses.gmh
99 Grass-Mud-Horses on Male-Gebi,
99 Grass-Mud-Horses,
River Crab came and ate one Grass-Mud-Horse,
98 Grass-Mud-Horses on Male-Gebi.
...

Other implementations

Contributions

The Whitespace programming language and its original Haskell implementation were authored by Edwin Brady; Cabal support added by haroldl (haroldl/whitespace-nd).

The great idea of GrassMudHorse programming language was proposed by bearice.

You can’t perform that action at this time.