Skip to content

macrat/tako-lang

Repository files navigation

tako-lang

(X){

my experimental language.

might working. (probably not)

fizzbuzz := (n){
	loop := (i){
		println(if i % 15 == 0 {
			"fizzbuzz"
		} else if i % 3 == 0 {
			"fizz"
		} else if i % 5 == 0 {
			"buzz"
		} else {
			i
		})

		if i < n {
			loop(i + 1)
		}
	}
	
	loop(1)
}

fizzbuzz(30)

feature

  • everything is the expression and they have value
  • dynamic typing
  • object that like table of Lua
  • no GC (plans; not yet)

how to try

$ go get https://github.com/macrat/tako-lang.git && cd tako-lang
$ go generate
$ go build

$ echo 'println("hello tako-lang!")' | ./tako-lang
hello tako-lang!

$ ./tako-lang examples/fizzbuzz.tako
1
2
fizz
...

About

(){ println("my language") }

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages