From 93093f5a220582ade7e51008d6c234a508381089 Mon Sep 17 00:00:00 2001
From: Leo Tenenbaum
It declares a constant, main
, which is a function with an empty body. Note that the syntax for declaring functions is the same as the syntax for declaring constants (it isn’t something like fn main() { ... }
).
It declares a constant, main
, which is a function with an empty body. Note that the syntax for declaring functions is the same as the syntax for declaring constants (it isn't something like fn main() { ... }
).
Assuming you have compiled the compiler (see README.md
for instructions about that), you can compile it with
You will get a file called out.c
, which you can then put through your C compiler to get an executable file which does nothing. Congratulations! You’ve written your first toc program.
You will get a file called out.c
, which you can then put through your C compiler to get an executable file which does nothing. Congratulations! You've written your first toc program.