Kraber is an interpreted programming language written in Rust. It provides minimal language features but has a syntax very close to natural language.

Syntax

edit

The syntax is verbose compared to other languages and is heavily inspired by Rust and Scratch.

Variable Declaration

edit

Variables must be declared with a type but initialization is impossible. All variables are mutable.

declare number as whole
set number to 0

Loops

edit

The only loop available is the while loop. An if statement can be implemented by setting the condition of the while loop to false.

declare x as boolean
set x to true
while x
{
  "x is true"
  set x to nand(x x)
}
"x is false"