1 KiB
1 KiB
HolyC
HolyC is a JIT compiled, imperative programming language created by Terry Davis as the main programming language for his TempleOS operating system. Its syntax and semantics resemble the ones of C.
HolyC type system is quite minimal and almost for documentation purposes only, making the language almost typeless (for example, all integer types are extended to 64 bits). Some other notable features are inline assembly support and the ability to embed any kind of data in the source code, including images, 3D models and more (on the source of the games included with TempleOS you can see these).
HolyC, unlike regular C is more flexible, it is even used as the shell language in TempleOS.
Examples
Hello World
// U0 is the void type
U0 Main()
{
// Lone string literals are a form of implicit print (and printf)
"Hello, World!\n";
}
// HolyC has a toplevel that allows for executable code, unlike C.
// Main here has to be called explicitly.
Main;
TODO