FNBBDevs / nolang

MIT License
3 stars 0 forks source link

Use array for local variables #27

Open Mr-Oregano opened 1 year ago

Mr-Oregano commented 1 year ago

Local variables resolved by the resolver pass are still stored in nested environments by the interpreter and looked up by name. They should instead be associated with a unique ID by the resolver and added to a single 1D list in the interpreter for better efficiency.

ethanlchristensen commented 1 year ago

what's an array?

Mr-Oregano commented 1 year ago

what's an array?

Ethan, why don't you bounce on ma member

Mr-Oregano commented 1 year ago

Bro gives a crap about efficiency for a tree-walk interpreter made in python 6937-laugh-at-this-user

ethanlchristensen commented 1 year ago

@Mr-Oregano is this completed