StuLa (Stupid Language) is a programming language, made by User:CMinusMinus in 2019. It has variables, import options, input and output, 3 main variable types and functions.
|X<i-1||X = 1|
|X<+i-1||X += 1|
|X<-i-1||X -= 1|
|X<*i-1||X *= 1|
|X</i-1||X /= 1|
|X<s-1||X = "1"|
|X<+s-1||X = X + "1"|
|X<v-A||X = A|
|X<?-A||X = input("A")|
|X<!-F||X = F()|
|X<!-F & 1 & 2||X = F(1,2)|
The definition of a variable is divided into three (for functions: four) parts.
Name, operator and value.
The operator is also divided into three parts.
"<", variable type (sometimes with an extra operator) and "-"
Lets create variable "x" with int 42.
Variable Name: "x"
You can insert variables wherever you want, just do "="+VARIABLE+"!" :
=X! new_var<s-=X! (Equal to "new_var = x")
To return a value from a function into a variable, just do
returned_var<!-my_function & 42 & =my_value!
To delete a variable, do
Input and Output
To get an input, do
name<?-Whats your name:=_!
(=_! is a built-in variable, which places a space)
To output something, do
out:text/MY TEXT GOES HERE out:line/MY TEXT GOES HERE (does a line break)
You can also place variables into a text:
x<i-42 out:text/The value of "x" is =x!.
The value of "x" is 42.
To define a function, do
Functions have to end with "<<>>"
You only can call functions, by defining them with a variable:
To add arguments, do
x<!-My_Function & My_Argument_1 & =Some_var! & (...)
To get an argument in a function, do
while 0 is "My_Argument_1" and  would be the value of "Some_var".
To return a value from a function into a variable, do
So if you want to have a function, that gets an user input and saves it into "my_input", it would look like this:
func/<<getinput>> i<?-TEXT:=_! ..=i! <<>> my_input<!-getinput out:line/=my_input!
To import a function from another file, do
Now you are able to use these functions, like normal ones.
There are also some built-in functions, that allows you, to
- Clear the terminal (StuTerm)
- Write in different colors (StuTerm)
(WIP) You can import built-in functions, by typing
func/<<hw>> ..Hello, World! <<>> text<!-hw out:line/=text!
i<?-Input Something:=_! out:line/=i!
To run the StuLa Interpreter, do
If you changed some of this enviroment variables, you don´t need the ".py"