jonathanhogg / flitter

A functional programming language and declarative system for describing 2D and 3D visuals
https://flitter.readthedocs.io
BSD 2-Clause "Simplified" License
34 stars 1 forks source link

Local variable stack #9

Closed jonathanhogg closed 10 months ago

jonathanhogg commented 10 months ago

Switch to using a stack of local variables instead of dictionaries. The compiler keeps track of the names and swaps them for stack-top offset addressing. Requires quite significant changes to a load of bits of the compiler and VM.