tuplary
The tuplary programming language was created by Daniel Borowski. The language is composed entirely of brackets and sometimes spaces, other characters are ignored.
Examples
Example Fibonacci Program
]] ][][ [[]] [][ [ ][] [][][][] [][ ] [[][][][]] [[][][]] [][ [ [] [[][][]] ][] ][] ] [] [][ [ ][] [][][][] [][] ] [] ] ][][ [[]] [][ [ ]]][ [[][]] ][] ]]]] ] ][][ [[]] [][ [ ]]][ [[][][]] ][] [][] ]] ] [][] [][ ] ][][ [[]] [][ [[][][][][][][]] ][] ][
Documentation
Writing values
Numbers
To write a number you put [[]+]
.
- In the plus, you write a
[]
repeated by how long is your number.
Examples:
- 2 =
[[][][]]
- 7 =
[[][][][][][][][]]
- 4 =
[[][][][][]]
- 3 =
[[][][][]]
To make a number negative you put a ]
to the beginning of the number.
Examples:
- -2 =
][[][][]]
- -7 =
][[][][][][][][][]]
- -4 =
][[][][][][]]
- -3 =
][[][][][]]
Characters
To write a character you write a number but, instead, your put it inside of a ]+[
.
- In the plus you write a number that it can only be in the range of 1-26 (a-z).
Examples:
- a =
] [] [
characters that aren't brackets are ignored (sometimes) - e =
] [][][][][] [
- h =
] [][][][][][][][] [
- p =
] [][][][][][][][][][][][][][][][] [
To make a character uppercase you put a [
to the end of the character.
Examples:
- A =
] [] [ [
- E =
] [][][][][] [ [
- H =
] [][][][][][][][] [ [
- P =
] [][][][][][][][][][][][][][][][] [ [
If you want to use special characters like spaces you put a ]
at the start of the character and you need to use a new alphabet, this alphabet:
space = ]][][
= = ]][][][
. = ]][][][][
: = ]][][][][][
[ = ]][][][][][][
] = ]][][][][][][][
\ = ]][][][][][][][][
( = ]][][][][][][][][][
) = ]][][][][][][][][][][
_ = ]][][][][][][][][][][][
< = ]][][][][][][][][][][][][
> = ]][][][][][][][][][][][][][
{ = ]][][][][][][][][][][][][][][
} = ]][][][][][][][][][][][][][][][
^ = ]][][][][][][][][][][][][][][][][
$ = ]][][][][][][][][][][][][][][][][][
# = ]][][][][][][][][][][][][][][][][][][
@ = ]][][][][][][][][][][][][][][][][][][][
; = ]][][][][][][][][][][][][][][][][][][][][
, = ]][][][][][][][][][][][][][][][][][][][][][
? = ]][][][][][][][][][][][][][][][][][][][][][][
' = ]][][][][][][][][][][][][][][][][][][][][][][][
~ = ]][][][][][][][][][][][][][][][][][][][][][][][][
Strings
To write an string you put a ][+][
- In the plus you write the characters
Example:
- Hey =
][ ][][][][][][][][][ ][][][][][][ ][][][][][][][][][][][][][][][][][][][][][][ ][