Skip to content

Releases: ssloy/tinycompiler

From wend to assembly

17 Jul 17:22
5251bfd
Compare
Choose a tag to compare

Seems-to-be functional compiler from wend to GNU 32-bit assembly

Homemade lexer and parser

17 Jul 17:29
Compare
Choose a tag to compare

New parser is more powerful than LALR(1), thus allowing for a lot nicer grammar for the Wend language

Getting rid of variable names

14 Jan 20:17
Compare
Choose a tag to compare

A second transpiler to python code, much less readable than the first one (transpy_naive.py), because I do not use any variable besides a couple of global ones. Ready to dive into assembly!

Symbol tables

14 Jan 20:04
Compare
Choose a tag to compare

Correct scope visibility for the variables and function overloading: fully functioning compiler into python using closures. Coming next: compiler into python without any variables!

automatic parsing into syntax trees

13 Jan 11:28
Compare
Choose a tag to compare

Using sly lexer + yacc to automatically create syntax trees. Simple programs are correctly (naively) translated to a python code, but variable scoping needs work. Symbol tables are the next step.

syntax tree to python

13 Jan 00:08
Compare
Choose a tag to compare

Naive Python code generation from a manually created syntax tree.