I created this as something to do in my spare time, and something to teach the children about code. This is definitely NOT Turing Complete. At least, not yet, but I dont plan to make it that way.
say hello
repeat 10
say hello
end
-- hello
The keyword "make" lets you declare a variable, this makes a variable named foo have the value of 64.
make foo 64
wait 5
(You must separate ANY operators with a space or they wont work. This is definitely a feature and not a fundamental design flaw or anything.)
say 1 + 1
say 5 - 3
say 6 * 2
say 9 / 3
say 2 ^ 8
make baz kids
make foo Lang
say baz .. foo
Whitespaces are usually removed from the end (and beginning) of lines when being processed, so if you want to concatenate with a space use "__"
say goodbye __ camelCase standardization
There are 4 boolean operators, these will be turned into the strings "True" or "False". They are =, !=, <, >
make foo 18
make baz 16
say foo > baz
make foo 15
make baz 10
if foo > baz
say foo is greater than baz
end
-- You can also just use the words "True" or "False" and even "Yes" or "No"
-- eg: if yes, if true, if no, if false
say What is 1 /+ 1?
make baz 15
say /baz
You can use user inputs with the "ask" command, the answer will be recorded to a variable named "answer".
ask What is your name?
say Hi, __ answer .. !