Skip to content

nils865/stoopid

 
 

Repository files navigation

TOOPID


Usage:
  • Python: python stoopid.py <filename>
  • Executable: stoopid.exe <filename>

Use -v or --version flag to display some information about your current installation of stoopid

Aditional Parameters
Parameter Description
--log <filename> file to write the logs to
--silent disables all output

Commands
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

Other useful features

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

Comparators
Comparator Example
<< 1 << 2
>> 2 >> 1
== 2 == 2
!= 2 != 1
<= 1 <= 2 or 1 <= 1
>= 2 >= 1 or 2 >= 2

Operators
Operators Example
+ 1 + 2 = 3
- 3 - 2 = 1
* 3 * 2 = 6
/ 3 / 2 = 1.5
% 3 % 2 = 1
^ 3 ^ 2 = 6

About

The Stoopid Programming Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.9%
  • Batchfile 1.1%