Of course, we'd have to handle variables by having a dictionary containing variable names and their corresponding values for each scope, but I think it would be manageable
It would also make writing a debugger for Vyxal in the future easier
You mean like if statements and while loops? The structure classes could each have their own methods to interpret them, shouldn't bee terribly complicated
I think the hardest part might be dealing with scopes of variables. Currently, Python does that for us, but deciding if we want to create a new dictionary everytime we move into a loop or reuse the same one but remove variables is gonna be hard
Or we could just make all variables globally scoped, which would be disgusting but perhaps golfier, and certainly easier to implement
I had started on a debugger for Vyxal a while back in the debugger branch, but I couldn't really finish it. Perhaps some of that code can still be salvaged