KshanexLang
compiler · language · standard libraryA statically typed, general-purpose language with a direct LLVM IR backend. Effect rows are checked at the call site. The compiler is written from scratch in Rust with no external crates, and the standard library is written in the language itself.
func read_config(path: str): Result<Config> with fs {
let raw = fs.read(path)?
return parse(raw)
}
func main(): int with fs, log {
let config = read_config("site.toml")?
log.info(config.name)
return 0
}