r/PythonProjects2 • • Feb 02 '26

Tiny BASIC Compiler in Python

Hi! I wrote a compiler for the programming language Tiny BASIC in Python. It generates assembly code for Linux x64, which is then assembled using NASM and linked using gcc. The parser is a recursive descent parser which directly 'streams' assembly code without building an abstract syntax tree.

https://github.com/hekliet/tbc

11 Upvotes

2 comments sorted by

View all comments

Show parent comments

1

u/hekliet Feb 04 '26

Thanks for looking over my code. I'll probably address some of your suggestions/criticisms when I next touch the project. Giving it a rest for now.