Partial reorganization to avoid global state and let the tree be built by parser.
This will cause the top the stack in the end to contain the whole tree of nodes created during reduce and avoid the global state. Somewhat neater. But may be less understandable :)
Partial reorganization to avoid global state and let the tree be built by parser.
This will cause the top the stack in the end to contain the whole tree of nodes created during reduce and avoid the global state. Somewhat neater. But may be less understandable :)