gtltem
Three characters and one cell of seven bits. It counts up, counts down and prints, and that is all.
qwerty12302, 2015 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
qwerty12302 made gtltem in 2015. The name spells out its three commands, greater than, less than and exclamation mark. There is one memory cell, no loops, no conditions and no input, so every program runs straight through once.
Read the story
Its characters come from gtltemASCII, which is ASCII without its 33 control characters. Code 0 is the space, 33 is A and 94 is ~.
The machine
| Char | Does |
|---|---|
> | Add 1 to the cell, from 127 back to 0 |
< | Take 1 from the cell, from 0 round to 127 |
! | Print the gtltemASCII character of the cell |
Space, tab and line feed do nothing. The Common Lisp implementation stops with an error on any other character, and on ! when the cell holds 95 to 127, which have no character. This implementation does the same.
Example
Thirty-three > reach A, and each further > steps to the next letter.
Thirty-three > reach A, and each further > steps to the next letter.
The Hello, World! walks the cell up and down between the letters. The comma is code 12, so it goes down 67 steps from o to get there.
Going down from 0 wraps round to 127, so 34 < land on 94, the tilde.
Further
Ideas it shows
See also
Also in Turing tarpits
Write your own in Run Convert a program from gtltem
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: gtltem.
Command line
shib run gtltem -e '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>!>!>!'shib manual gtltemSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/gtltem.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org