Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soimort/grassmudhorse
An implementation of GrassMudHorse programming language in Haskell
https://github.com/soimort/grassmudhorse
Last synced: 2 months ago
JSON representation
An implementation of GrassMudHorse programming language in Haskell
- Host: GitHub
- URL: https://github.com/soimort/grassmudhorse
- Owner: soimort
- License: gpl-2.0
- Created: 2013-04-19T21:37:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-08T14:48:57.000Z (almost 10 years ago)
- Last Synced: 2024-10-14T12:25:35.415Z (3 months ago)
- Language: Haskell
- Size: 158 KB
- Stars: 48
- Watchers: 6
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# 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](http://code.google.com/p/grass-mud-horse/) 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](http://code.google.com/p/grass-mud-horse/wiki/A_Brife_To_GrassMudHorse_Language).
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](http://www.99-bottles-of-beer.net/lyrics.html):
$ 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
* Java:
* JavaScript:
* Erlang:## Contributions
The [Whitespace programming language](http://compsoc.dur.ac.uk/whitespace/index.php) and its original Haskell implementation were authored by [Edwin Brady](https://github.com/edwinb); Cabal support added by [haroldl](https://github.com/haroldl) ([haroldl/whitespace-nd](https://github.com/haroldl/whitespace-nd)).
The great idea of [GrassMudHorse programming language](http://code.google.com/p/grass-mud-horse/) was proposed by [bearice](https://github.com/bearice).