kallemooo / Asap2

Asap2 parser.
MIT License
38 stars 21 forks source link

Partial reorganization to avoid global state #1

Closed elupus closed 7 years ago

elupus commented 7 years ago

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 :)