StatiC

From Esolang
Jump to navigation Jump to search

StatiC is a C-like language which is entirely static. It doesn't allocate or deallocate memory.

Syntax

The syntax is like C except you can't use malloc() and free(). You also can't use any standard functions unless you define them yourself, which means you can't use printf().

There are a lot of other things you can't do, all of which involve malloc() and free(). You also can't use pointers.

A lot of this language is hampered by the fact that I don't know C and have never coded in C. Maybe I will end up writing something which isn't valid C code. I don't really care.

Code Examples

Integer

int main() {
   int f = 5;
   return 0;
}