clear method
void
clear()
Clears the variable stack and adds a new global scope.
This method is used to reset the context to a clean state, removing all previously set variables and scopes. It ensures that the context starts with a fresh global scope.
Implementation
void clear() {
_variableStack.clear();
_variableStack.add({});
}