Tildehyph

From Esolang
Jump to navigation Jump to search

Tildehyph or ~- is a turing complete programming language created by User:Tygrak using only two symbols - the tilde ~ and the hyphen -.

Language overview

Tildehyph uses multiple commands most of which have a large amount of modes giving it a lot of potential. Code can include whitespace and comments using // but it isnt required. A single command is made up of the command, two hyphens, a number of arguments separated by three hyphens and ended by four hyphens. For example ~--~---~------- creates a variable called "~" with a value of 1. Values are inputted as binary numbers ~ is used as a 1 and - as a 0, but they cant end or begin with hyphens. This makes input of exact values slow, because often you have to create a smaller value and then add another value to it. Values can be printed as characters. The list of all commands and modes of the commands is available at Tildehyphs github repository, you can also find the interpreter there.

Examples

I cant add examples, because 3 tildes in a row create a signiture (~~‍~~), instead you can find them on the github repository.

Commented brainfuck interpreter proving Tildehyphs Turing-completeness.