Skip to content

Latest commit

 

History

History
30 lines (30 loc) · 551 Bytes

spec.md

File metadata and controls

30 lines (30 loc) · 551 Bytes

Kapu

Types

Default types are int, bool. (Not implemented yet) There are also float, char, array and pointer. Strings are just pointer to arrays of chars.

Functions

Functions are declared like this

func name(arg: type, more: type): type 

They are followed with block of statements

{
    code
}

or with one line of statement after the type

code

Statements

Variables declaration

Variables are declared like this

let a: type = value

They can be declared without value (not implemented yet)

let a: type