Kombucha is a experimental programming language. A combination between Elixir and Gleam.
module Brew {
pub strong() {
"This is a Kombucha Brewed in 30 days!"
}
}
Brew.strong()
- Transpiles down to Elixir. Is essentially Elixir with some Gleam ideas on top.
- All functions within a module are private by default (defined with
fun
). Must be made public explicitly withpub
keyword. - Can have constants with
const
keyword. module
instead ofdefmodule
.struct
instead ofdefstruct
.macro
instead ofdefmacro
.guard
instead ofdefguard
./*
and*/
multiline comments.- Curly braces
{}
for blocks instead ofdo
andend
. $myfunc()
instead ofmyfunc.()
for anonymous functions.
Is a simple parser implemented in Elixir. Maybe it can help learners or a good exercise.