Change the reference interpreter's [semantic_action] function so
that it does not write [env.current]. This was easy, as the write to [env.current] was in fact unobservable and could be replaced with a write to a local reference [current]. At the same time, changed the local recursive function [pop] to a loop, for greater readability.
Showing with 43 additions and 42 deletions