summaryrefslogtreecommitdiff
path: root/src/program.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2016-02-19 16:12:41 +0100
committerAdrian Thurston <thurston@complang.org>2016-02-19 16:12:41 +0100
commit6dd6b970b79e89b165cfc86e30e127fecfe1212f (patch)
tree78c632f2d90eada3ab2dcf4499d6a0d1722fab8c /src/program.h
parent78ab04bcdc09256e11b0723932eba3e8c1d5c247 (diff)
downloadcolm-6dd6b970b79e89b165cfc86e30e127fecfe1212f.tar.gz
host adapters now have unique names are are accessed with func pointers
This eliminates symbol collisions present when linking multiple colm programs into the same executable.
Diffstat (limited to 'src/program.h')
-rw-r--r--src/program.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/program.h b/src/program.h
index d39b4f4a..f3e63e4a 100644
--- a/src/program.h
+++ b/src/program.h
@@ -100,7 +100,13 @@ struct colm_sections
void (*init_bindings)( struct pda_run *pda_run );
void (*pop_binding)( struct pda_run *pda_run, parse_tree_t *tree );
+ tree_t **(*host_call)( program_t *prg, long code, tree_t **sp );
+
+ void (*commit_reduce_forward)( program_t *prg, tree_t **root, struct pda_run *pda_run, parse_tree_t *pt );
+ long (*commit_union_sz)( int reducer );
void (*init_need)();
+ int (*reducer_need_tok)( program_t *prg, struct pda_run *pda_run, int id );
+ int (*reducer_need_ign)( program_t *prg, struct pda_run *pda_run );
};
struct heap_list