Releases: ssloy/tinycompiler
Releases · ssloy/tinycompiler
From wend to assembly
Seems-to-be functional compiler from wend to GNU 32-bit assembly
Homemade lexer and parser
Getting rid of variable names
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
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
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
Naive Python code generation from a manually created syntax tree.