Syntax
Structure
Variables
var name = variable;String
var foo = "string"Conditions
Operators have natural language and symbolic options.
== != and or
is is not and orFunction definition
func funcName(params) : returnType
{
}
Collection
Not implemented yet
var list = []list[index]Comments
Comments are multiline by default. Everything between // and ; is treated as a comment.
// This is a comment;Control Flow Statements
Conditions
Using an operator from: ==, !=, <, <=, >, >=. Double statements using and and or
variable == true
variabel == falseIf Statements
if condition
{
//then body;
}elif condition
{
//then body;
}else
{
//then body;
}For Loop
for var name = int to int
{
//then body;
}foreach(var item in list)
{
//then body;
}While Loop
while condition
{
//then body;
}Functions
Importing extern functions
extern Standard.Terminal.Print;
func main()
{
Print("Hello World!");
}Last updated