Skip to content

Releases: ssloy/tinycompiler

From wend to assembly

Choose a tag to compare

@ssloy ssloy released this 17 Jul 17:22
5251bfd

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

Homemade lexer and parser

Choose a tag to compare

@ssloy ssloy released this 17 Jul 17:29

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

Getting rid of variable names

Choose a tag to compare

@ssloy ssloy released this 14 Jan 20:17

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

Choose a tag to compare

@ssloy ssloy released this 14 Jan 20:04

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

Choose a tag to compare

@ssloy ssloy released this 13 Jan 11:28

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

Choose a tag to compare

@ssloy ssloy released this 13 Jan 00:08

Naive Python code generation from a manually created syntax tree.