LazenLang
An imperative, object-oriented, static and type-infered programming language.
Install / Use
/learn @jomtek/LazenLangREADME
The Lazen Programming Language
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
Code examples
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
}
Project evolution
- [x] Lexing
- [x] Parsing
- [ ] Typechecking
- [ ] IR code generation
- [ ] Optimisation
- [ ] ASM or bytecode generation
