The stoopid programing language rewritten in C
You can use the interpreter by running the command stoopid <filename>
Requirements:
- G++
- make
- python3
make compile
only compiles files that changed since the last compile
make compile-all
compiles all files
make run
runs a debug script
if there is an error please change the python
variable in makefile
to the command that runs python on your system, try changing it from python3
to python
NOTE: mingw comes with make, its just named mingw32-make, so if you are using mingw just run mingw32-make
instead of make
Keyword | Description | Syntax |
---|---|---|
var | Defines a variable | var : <name> = <value> |
out | Prints something to the output | out : <value> |
goto | Sets the next line to be read by the Interpreter | goto : <linenumber> |
sleep | Pauses the execution | sleep : <ms> |
end | Ends the programm | end |
Strings can be combined with +
ints, bools and variables can also be combined with strings
Math equasions can be used anywhere
All standart operators can be used as well as %
for modulo and ^
to get the power of something
Math equasions also support brackets
Booleans are also completely implemented although they work different than in other languages
Comparator | Description |
---|---|
<< |
less than |
>> |
greater than |
<= |
less or equal |
>= |
greater or equal |
== |
equal |
!= |
not equal |
&& |
and |
|| |
or |
! |
not |
Comments always need their own line and can be used by starting with #
Example: # This is a comment