GHOST
Jump to navigation
Jump to search
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
GHOST
GHOST (Ghost holes of spoon tables) is a programming language developed by nalaek2004 in 2015. The language is small, and cannot contain variables. It also has no IO. There are 3 commands in the language:
- CREATE PERSON
- KILL PERSON
- REVIVE PERSON
Description
The interpreter has 2 values:
- Dead
- Alive
Dead is the amount of dead people, and Alive is the amount of alive people.
Examples
A simple counter
CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON <- Repeat infintely
Addition
CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON KILL PERSON KILL PERSON REVIVE PERSON REVIVE PERSON
This program uses the Dead and Alive values to add.
Subtraction
CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON CREATE PERSON KILL PERSON KILL PERSON KILL PERSON KILL PERSON KILL PERSON KILL PERSON
Interpreters
Scratch GHOST interpreter by nalaek2004 Interpreter