Hello and welcome.
In this simple lecture, we are going to actually push the variable node to the scope.
So we're going to go past the scope push.
It's going to ask for the node.
And I just want us to go to that function because it's not actually supposed to be a node, it's supposed
to be a parser scope entity.
So that was my mistake.
So just set that to parse a scope entity because we're pushing the scope entities, not the nodes.
Easy mistake, guys.
Okay, now back to parser, scope, push.
We're going to say parse a new scope entity.
We're going to pass in the VAR node, we're going to set the stack offset which will be var node, var
a offset.
We're going to have zero for the flags.
And finally the size will be var node, var type size.
Okay.
Now that will basically push our new scope entity to the stack.
So remember I said in the last lecture how stack offset will be computed when we call when we call parse
a new scope entity.
Well, that's where we're doing it.
So we call parse a new scope entity.
We pass in the offset passing the note variable node, I mean passing the flags and then that returns
a new passive scope entity which we push to our stack.
So that concludes this lecture.
Thank you for watching.