Skip to content

tjlawal/tiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny

This is an attempt to create a Tiny BASIC compiler. This project is entirely inspired by the series of articles published by Austin Henley on building a compiler that you can find here.

In its current form, it only supports the syntax specification that can be found in the grammar.txt file in the project dir. To test it out, run the compiler against any .tiny file in the test folder this should generate a compilable C file that you can use with your favorite compiler.

The only dependency this project has is the google yapf formatter tool. To use it, enable a python virtual environment (if that is still a thing whenever you are reading this) then install yapf with pip (if that still exists) then run the tool with the -i flag to enable in-place formatting.

NOTE: This project does not use the yapf tool anywhere in the code, it is to be used explicitly as a CLI tool like clang-format.

About

TinyBasic to C Compiler

Topics

Resources

License

Stars

Watchers

Forks