Skip to content

geochip/teenytinyc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Teeny Tiny compiler in C++

It compiles (transpiles) our own dialect of BASIC to C.

Build

Run

make

Usage

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

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published