jserv / amacc

Small C Compiler generating ELF executable Arm architecture, supporting JIT execution
Other
1.01k stars 159 forks source link

Refactor variable and enum declarations to be statements #36

Closed jserv closed 5 years ago

jserv commented 6 years ago

Branch decl-refactor introduced excellent work, allowing now variables declared within functions anywhere, not just at the beginning, and enums can go into functions too, that means we can initialize local variables as int i = [expr].

Commits: