You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
instead of the whole stack thing, when encountering a variable decl, introduce a new Local, and when compiling an expression, a new Temp.
That probably means a State that keeps:
Local mapping Map String Local (local name => var idx).
Without shadowing, otherwise need to find a different way)
The last Temp seen (and a function newTemp that increments the one in the State and returns it).
The text was updated successfully, but these errors were encountered:
compileFn
returnsinstead of the whole stack thing, when encountering a variable decl, introduce a new
Local
, and when compiling an expression, a newTemp
.That probably means a
State
that keeps:Local
mappingMap String Local
(local name => var idx).Without shadowing, otherwise need to find a different way)
Temp
seen (and a functionnewTemp
that increments the one in theState
and returns it).The text was updated successfully, but these errors were encountered: