AltoLang / Alto

Compiler in the works!
MIT License
3 stars 1 forks source link

Subroutine declarations! #33

Closed FilipToth closed 3 years ago

FilipToth commented 3 years ago

Add support for function declarations.

Usage

You can now declare subroutines (They can't return anything yet)

Syntax

function add(x: int, y: int)
{
    var a = x + y
    print(toString(a))
}

add(15, 36)