MonkeScript
MonkeScript is an interpreted language i made at 2:00 am cuz i was bored
It is made in python
Syntax
The syntax of MonkeScript is kind of a mashup of C, Rust, Basic but also with other things so...
Variables
int num = 0
float num = 0f / float num = 0.1f
string text = "string"
bool boolean = true
list l = [0, 1, 2, 3, 4, 5]
Functions
fn function(arg1, arg2){
...
...
}
function("arg", "arg")
For loops
for i = 0 to 8 step 1(optional){
...
}
If statements (elif and else optional)
if <statement>{
...
elif <statement>
...
else
...
}
while loops
while <statement>{
...
}
Built in functions/variables
null
true
false
pi
print("hello world") -> return
input() -> string
inputInt() -> int
Clear()/cls() -> none
Append(list, item) -> none
Pop(list, item) -> none
Extend(list1, list2) -> none
Len(list) -> int
indexOf(list, item) -> int
Range(start, end, step) -> list
Int(value) -> int
Float(value) -> float
Str(value) -> string
and if the random library is imported:
import random
random.randint(min, max) -> int
random.choice(list) -> any
random.randrange(start, end, step) -> int/float
Also return continue and break
Note
Dont blame me if ur code doesnt work, this language sucks