It compiles (transpiles) our own dialect of BASIC to C.
Run
make
This will generate teenytinyc
compiler binary.
You can use it to compile Teeny Tiny language to C.
Like so:
./teenytinyc examples/fibonacci.teeny
It outputs the C code to out.c
.
You may use clang-format
to inpect the resulting C code.
You may use any C compiler to get the program binary.
Like so:
gcc -o fibonacci out.c
Then just run the program
./fibonacci
There is a helper script build.sh
, which runs the teenytinyc
compiler and the C compiler to get the binary.
./build.sh examples/fibonacci.teeny