Lazen is an imperative, object-oriented programming language, which supports type-inference. It is meant to be "100% handmade" : it uses no lexing/parsing/compilation library.
Click here to access Lazen documentation
Hello world
class Program
{
static func Main(args: [String])
{
println("Hello, world!")
0
}
}
Bubblesort algorithm
static func BubbleSort<T>(list: List<T>) -> List<T>
{
var n = list.Len()
for i in range(0, n-1)
{
for j in range(0, n-i-1)
{
if list[j] > list[j + 1]
swap(list, j, j+1)
}
}
list
}
- Lexing
- Parsing
- Typechecking
- IR code generation
- Optimisation
- ASM or bytecode generation