Skip to content

italolelis/groot-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Groot Programming Language in PHP

The Groot Programming Language in PHP

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:

phrase meaning
i am Groot increment the byte at the data pointer.
I am Groot decrement the byte at the data pointer.
I AM GROOOT output the byte at the data pointer.
I AM GROOT increment the data pointer.
I am groot decrement the data pointer.
I am grooot accept one byte of input.
I'm groot if 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 Groot if 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.

Running

To run:

$ php index.php groot:run helloworld.groot

About

The Groot Programming Language in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages