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.
||<variable> <value>||Creates a variable and sets a value to it|
||<variable>||Creates a variable and assigns user input to it|
||<value>||Outputs value as an ASCII character|
||<value>||Outputs value as a number|
||<variable> <value> <operation> <value>||Performs a Math operation with 2 values and assigns it to a variaible|
||Exits the program|
||<value> <comparsion> <value>||Performs an IF statement. If it returns true, a code block is executed|
||Ends a code block|
||<function>||Assigns a code block to a function variable|
||<function>||Runs a function|
||<label>||Creates a label variable|
||<label>||Goes to a label (goto)|
Invalid instructions are ignored.
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:
r- Division remainder (modulo)
comparsion is used as a comparsion operator for IF statements. It can be:
n- Not equal
g- Greater than
l- Less than