TextGarbage
TextGarbage (previously named Gibberish but that's already taken) is an esoteric programming language created by User:Dominicentek. It's commands are only 1 character long making the code look like gibberish.
Instructions
| Instruction | Parameters | Description |
|---|---|---|
v |
<variable> <value> | Creates a variable and sets a value to it |
i |
<variable> | Creates a variable and assigns user input to it |
o |
<value> | Outputs value as an ASCII character |
n |
<value> | Outputs value as a number |
m |
<variable> <value> <operation> <value> | Performs a Math operation with 2 values and assigns it to a variaible |
x |
Exits the program | |
c |
<value> <comparsion> <value> | Performs an IF statement. If it returns true, a code block is executed |
e |
Ends a code block | |
f |
<function> | Assigns a code block to a function variable |
r |
<function> | Runs a function |
l |
<label> | Creates a label variable |
g |
<label> | Goes to a label (goto) |
Invalid instructions are ignored.
Parameter Types
variable, function and label are variable names. Each variable name is named with just one character. When you define a variable type as c, you will define it, but you can't access it due to the character being used for marking constants.
value can either be a constant or variable. If it includes c at the beginning, it's marked as constant and the value after it will be used for that constant. Otherwise, it's a variable that does not have any extension. If a constant is not a number, it's treated as a character ASCII value.
operator is a Math operator. It can be:
a- Adds- Subtractm- Multiplyd- Divider- Division remainder (modulo)
comparsion is used as a comparsion operator for IF statements. It can be:
e- Equaln- Not equalg- Greater thanl- Less than
Examples
Hello World
ocHoceocloclocooc,oc ocWocoocroclocdoc!
Truth Machine
ixcxec1llnc1glenc0
Calculator
i1ioi2mac7mc6maaac1msc9mc5mmc7mc6mdc7mc7mddsc2mrc5mc7mrrac2coeam11a2ecoesm11s2ecoemm11m2ecoedm11d2ecoerm11r2en1