Gopher

From Esolang
Jump to navigation Jump to search

Gopher is an esoteric language created to be similar in some ways to brainfuck but at the same time being its own thing.

Current Version: 1.0

An online Interpreter can be found at Gopher Language Interpreter on GitHub.

Gopher uses a single character pointer to point to a character on the Unicode table using the functions listed below you can move this pointer. The only limitation of this language is that you can not reset the pointer with a single function.

How to use the language:

+: +1 to the char pointer
- -1 from the char pointer
× +4 to the char pointer (Unicode ×)
÷ -4 from the char pointer (Unicode ÷)
^ +8 to the char pointer
@ -8 from the char pointer
? +16 to the char pointer
! -16 from the char pointer
& +32 to the char pointer
% -32 from the char pointer
$ +64 to the char pointer
# -64 from the char pointer
: +128 to the char pointer
; -128 from the char pointer
[ Start a Multiplication loop
, Sepereate a set of instructions to be multiplied by a number chosen by more instructions
] End a Multiplication loop
' Double the Pointer Value
. Halve the pointer Value
< Push the character onto the stack which is where the char pointer is pointing
= Output the code to the user

Hello World Example (44 Characters)

'&++<'×<&÷+<^-<<×-<#!+<'?^-<?^<×-<÷--<@<.!<=

Hello World Example (42 Characters)

&++<'×<&÷+<^-<<×-<#!+<$@-<&@<×-<@++<@<.!<=

Quine Example (1 Character)

=