-
Notifications
You must be signed in to change notification settings - Fork 1
Cheat Sheet
TvoozMagnificent edited this page Aug 29, 2022
·
5 revisions
Syntax (separated with newlines) | What it does |
---|---|
Comments | |
comment [comment] |
Coment |
Any unrecognized line | Comment with warning |
Setting Variables | |
set [varname=last] to [varvalue=last] |
Set Var |
defined [varname=last] |
Is Var defined? |
Available Values | |
^-?[0-9]+$ |
Int Val |
^-?[0-9]*\.[0-9]*$ |
Float Val |
^-?[0-9]+e[0-9]+$ |
Sci Nota Int Val |
^-?[0-9]*\.*[0-9]*E-?[0-9]*\.*[0-9]*$ |
Sci Nota Float Val |
^".*"?$ |
Str Val |
^\'.\'?$ |
Char Val |
[] |
Emp List Val |
{} |
Emp Set Val |
<> |
Emp Stack Val, equivalent to list |
I/O | |
in [varname=last] |
In with query |
out [varname=last] |
Out with newline |
line [varname=last] |
Out without newline |
Control Flow | |
skip [varname=last] |
Skip lines |
back [varname=last] |
Go back lines |
goto [varname=last] |
Go to line (1-index) |
recurse |
Recurse* |
exit |
Exit. What did you expect? |
Calculations | |
calc function arguments (usually default to last) |
Calculate and store result to variable last
|
Check out the References |
*: In the new program, the variable last
in the sub program will be set to the variable last
in the main program, and then after the recursion the variable last
in the main program will be set to the variable last
in the sub program.
Yo, who needs a custom sidebar?
Not me!