- Python:
python stoopid.py <filename> - Executable:
stoopid.exe <filename>
Use -v or --version flag to display some information about your current installation of stoopid
| Parameter | Description |
|---|---|
| --log <filename> | file to write the logs to |
| --silent | disables all output |
| Keyword | Syntax | Description |
|---|---|---|
| var | var : <name> = <value> |
Creates a variable |
| arr | arr : <name> : <size> |
Creates an array |
| app | app : <name> : <value> |
Appends to an array |
| getarr | getarr : <name> : <index> : <destination> |
Gets the value of an array at index |
| out | out : <name> |
Prints the given value |
| goto | goto : <line> |
Changes the next line read by the interpreter |
| sleep | sleep : <time> |
Waits the given time until next execution |
| goif | goif : <line> : <condition> |
Changes the next line read by the interpreter if given condition is true |
| if | if : <condition> : { |
Executes code in curly brackets if the condition is true |
| bool | bool : <name> = <value> |
Creates a boolean |
| import | import : <library name> |
Imports an external library from %appdata%/stoopid/libs |
| end | end |
Stops code |
| external | <libraryName>.<keywordName> : <args> |
uses a keyword from an external library |
Comments can be made with a # as the first character: # this is a comment
Labels can be added after a line and you can jump to them with goto or goif: : <label>
After initialisation variables can be used like this: <name> = <value>
If no filename was given, Console Mode will be started and you can input any valid one line stoopid code in the console
| Comparator | Example |
|---|---|
| << | 1 << 2 |
| >> | 2 >> 1 |
| == | 2 == 2 |
| != | 2 != 1 |
| <= | 1 <= 2 or 1 <= 1 |
| >= | 2 >= 1 or 2 >= 2 |
| Operators | Example |
|---|---|
| + | 1 + 2 = 3 |
| - | 3 - 2 = 1 |
| * | 3 * 2 = 6 |
| / | 3 / 2 = 1.5 |
| % | 3 % 2 = 1 |
| ^ | 3 ^ 2 = 6 |