thiagopnts/groot

:deciduous_tree: The Groot Programming Language

Rust

384

6 commits

updated Oct 4, 2015

See the code

README

The Groot Programming Language

Groot is an esoteric programming language, which uses the language of an extraterrestrial plant from Planet X called Groot as its syntax.

Commands

There are eight commands like Brainfuck:

phrasemeaning
i am grootincrement the byte at the data pointer.
I am Grootdecrement the byte at the data pointer.
I AM GROOOToutput the byte at the data pointer.
I AM GROOTincrement the data pointer.
I am grootdecrement the data pointer.
I am groootaccept one byte of input.
I'm Grootif the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching We are Groot command.
We are Grootif the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching I'm Groot command.

Building

To build, run:

$ cargo build

Running

To run:

$ cargo run helloworld.groot

The Rust version used to build this: rustc 1.0.0-nightly (dfc5c0f1e 2015-02-18) (built 2015-02-19)

It will probably work with any nightly build.

Contributors

thiagopnts

2 commits

Laevos

1 commits

meshcollider

1 commits

olivierrr

1 commits

thiagopnts/groot

:deciduous_tree: The Groot Programming Language

Rust

384

6 commits

updated Oct 4, 2015

See the code

README

The Groot Programming Language

Groot is an esoteric programming language, which uses the language of an extraterrestrial plant from Planet X called Groot as its syntax.

Commands

There are eight commands like Brainfuck:

phrasemeaning
i am grootincrement the byte at the data pointer.
I am Grootdecrement the byte at the data pointer.
I AM GROOOToutput the byte at the data pointer.
I AM GROOTincrement the data pointer.
I am grootdecrement the data pointer.
I am groootaccept one byte of input.
I'm Grootif the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching We are Groot command.
We are Grootif the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching I'm Groot command.

Building

To build, run:

$ cargo build

Running

To run:

$ cargo run helloworld.groot

The Rust version used to build this: rustc 1.0.0-nightly (dfc5c0f1e 2015-02-18) (built 2015-02-19)

It will probably work with any nightly build.

Contributors

thiagopnts

2 commits

Laevos

1 commits

meshcollider

1 commits

olivierrr

1 commits

Languages

Rust

100.0%