Skip to content
TheRealMichaelWang edited this page May 18, 2021 · 13 revisions

Welcome to the FastCode Wiki

Documentation

Variables and Garbage Collection

Values and References

Flow Control

Extensibility, Modulization

A Quick Guide

If...Elif...Else

if condition1 {
   action1()
}
elif condition2 {
   action2()
}
elif condition3 {
   action3()
}

While

while condition {
   do_action()
}

Defining a procedure

proc my_procedure(argument) {
   do_something()
   return something
}

and calling one...

my_procedure(5)

Setting a variable

myvar = 10

or making a static one...

static myvar = 10

or making a constant one...

const myconst = 10 Note: Grouping doesn't apply to constants.

Operators

a = b * c
a = b + c
a = b / c
a = b - c
a = b ^ c
a = b++
a = b--