README.md
A statically-typed programming language that transpiles to C99.
from core.math import abs
struct Pair
a: int
b: int
func hash(): int
return self.a ^ self.b
end
end
interface Hashable
func hash(): int
end
func get_hash(h: &Hashable): int
return h.hash()
end
func main(): int
var p = Pair(a = 3, b = 9)
return get_hash(&p)
end
end-delimited blocks&T) and nullable pointers (*T) with pointer arithmeticwith / release()export / importA C compiler must be installed and available in your PATH:
gcc, clang, or cl (MSVC).
cmake -B build
cmake --build build
Run a single file:
bin/ancc.exe run file.anc
Build a multi-file package:
bin/ancc.exe build path/to/project
py tests/run_tests.py
Run a single test by name:
py tests/run_tests.py --filter enum_basic