-
Notifications
You must be signed in to change notification settings - Fork 0
Features
Note: Potential features / features with missing details are marked with (?)
-
Switchstatements instead ofifstatements, but instead ofbreak, you have to usegoto -
While loops that confirm that you actually want to break the loop
-
Labels are set with
;label; -
There are
goto ;label;statements, which you can return from by usinggoto ;camefrom; -
Dysfunctional Functions™ (Not sure what that means yet, but with a name like that, I've got to include it.)
-
All variables are global
-
\uxxxxanywhere gets converted to UTF-16 character before execution; if part of it is missing, it gets padded with random characters0-F -
No rng commands, instead you use the previous feature or a delimiter that marks code as optional so it gets executed 50% of the time
-
All lines must be an even length(?), and no longer than (?) characters; if lines are longer, they will be silently truncated
-
Output is just a variable, and you produce output by setting that variable. However, to reduce ambiguity, any variable with
outin the name will work -
Input is also a variable, which you retrieve a value from. Again, any variable with
inin the name will work -
Use
->to set variables or retrieve from variables. You can also use<- -
Strings are delimited with double single quotes:
''Hello World'' -
Arrays are delimited with single double quotes, with pipes separating values:
"1|2|3" -
Arrays can have negative and fractional(?) indexes, and they're 1-indexed, e.g.
a"-2", a"-1", a"1", a"2"; buta"0"will just segfault -
All keywords can be used as variables, rendering the function of the keyword inoperable
-
Like any keyword, you can try to set
nulllike a variable, but the value will be trashed -
Escape character in strings is
!, but to escape!characters, you have to use\ -
Brackets are mirrored, e.g.
}])> <([{ -
Strange automatic typecasting / overloading, e.g.
[] -> 0[[]] -> 1null -> 0[null] -> 1
Print "Hello, World!"
''Hello, World\!''->out
Truth-Machine
x<-in:x:x->out:
Cat Program
in->out
Define an Array of Strings
"''Hello''|''World\!''"