summaryrefslogtreecommitdiff
path: root/chapter03/src/test/java/com
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2023-10-26 14:28:36 -0700
committerGitHub <noreply@github.com>2023-10-26 14:28:36 -0700
commit0049146baf2502809ed3f29b07cc5f90513cb747 (patch)
tree946ce628b8c9e630a33b681f768177650249b23c /chapter03/src/test/java/com
parented7e01a7bf7b038a38d975358e85fb3d281b47bb (diff)
downloadSimple-0049146baf2502809ed3f29b07cc5f90513cb747.tar.gz
Simple-0049146baf2502809ed3f29b07cc5f90513cb747.zip
Replace Parser scopes with ScopeNode (#14)
Fixes #12 * Replace Parser scopes with ScopeNode Basically move the Stack of HashMaps to a ScopeNode, with wrappers. The HashMap maps String names to Integer indices; inputs to the ScopeNode. This way, the ScopeNode keeps alive Nodes that are only alive because they are alive in the HashMap. Fix bug isDead -> isUnused in deadCodeElim. Support routines for adding/removing edges in ScopeNode. Set $ctrl to null after a Return; there is no control. Regression tests. * One more test case
Diffstat (limited to 'chapter03/src/test/java/com')
0 files changed, 0 insertions, 0 deletions