y-flat / yfc

The best (because it's the only) compiler for the Y-flat programming language.
GNU General Public License v3.0
6 stars 7 forks source link

Create codegen struct #85

Open adamhutchings opened 2 years ago

adamhutchings commented 2 years ago

Currently in the cst-dump and gen files, there are static instances of the indentation level. We should ideally have a struct containing that information which is passed to each function.

adamhutchings commented 2 years ago

104 added a codegen struct, so now we just need it for CST dumping.