summaryrefslogtreecommitdiff
path: root/src/pdarun.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-10-04 11:40:30 -0400
committerAdrian Thurston <thurston@complang.org>2015-10-04 11:40:30 -0400
commit514d1771d7956df29ea8e9f0c5f0a35d47bc8bc4 (patch)
treeb076ba176a640396c63f8986442ad5613fef893e /src/pdarun.h
parent672040140417c53b278aa79ac91b8e89a1a3d634 (diff)
downloadcolm-514d1771d7956df29ea8e9f0c5f0a35d47bc8bc4.tar.gz
working on a commit that can execute reduction actions
First track if the result is used. If not, we can remove parse trees at commit points. This is also the time to execute reduction actions so we can load as we parse. Not currently enabled (by way of omitting setting of not-used bit).
Diffstat (limited to 'src/pdarun.h')
-rw-r--r--src/pdarun.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pdarun.h b/src/pdarun.h
index 5708f7fc..dd180ab8 100644
--- a/src/pdarun.h
+++ b/src/pdarun.h
@@ -355,6 +355,8 @@ struct pda_run
int rc_block_count;
tree_t *parse_error_text;
+ char not_used;
+ parse_tree_t *last_final;
};
void colm_pda_init( struct colm_program *prg, struct pda_run *pda_run,