0.0.1 • Published 5 years ago
flexlang v0.0.1
Flex
The Flex Programming Language
Sample
let myNumber = 12;
if myNumber >= 16 {
print "Larger than 16";
} else {
print "Smaller than 16";
}
fn addTwo num {
return num + 2;
}
let numbers = [1, 2, 3];
for number in numbers {
print addTwo number;
}
Syntax
Variable Declaration
let x = y;
A Variable Declaration starts with the identifier "let", followed by its name. The Value is at the last token of the line (TODO: Needs to be improved)
0.0.1
5 years ago