A C-like programming language written in C99.
Featuring indent-based scoping and optional braces and semicolons.
thi hello.thi
# -> 'Hello'
./dev
Assembler: nasm (version 2.14.02)
Linker: ld (BUILD 18:45:16 Apr 4 2019)
Tested on macOS. Unsure about Windows.
# This is a comment
extern puts (u8*) s32
extern printf (u8*, ...) s32
def main(argc int, argv char**) s32
defer
puts("4th")
defer
printf("%f\n", getFloat())
defer { puts("2nd") }
puts("1st")
# Order of declarations do not matter.
def getFloat() f64
return 53.2
1st
2nd
53.2
4th
More examples can be found in the 'tests' folder.
This is currently a work in progress and not in any way stable.