Home

Awesome

Golem

Golem is a statically typed, object-oriented programming language.

Example

using core

func fib(n: int) -> int {
	if n < 2 {
		return n
	}
	return fib(n-2) + fib(n-1)
}

let t0 = clock()
let mut i = 0
while i < 5 {
	println(fib(28))
	i := i + 1
}
let elapsed = clock() - t0
println("Elapsed: $elapsed")

Features

Installing

Golem is written in C99, and has been tested to run on Linux and Windows. A Makefile is used to build the compiler.

$ make
$ golem your/file/here.gs

Use make DEBUG=1 to generate the debugger. To generate the immediate representation tool, run make ir. More features can be enabled/disabled in the Makefile.

Info

For more information about the syntax see Syntax. This project was used in the german science competition "Jugend forscht" 2016.

Licence

Licensed under GNU GPLv3. Copyright (c) Alexander Koch 2017