From 00b1dd7777079036321afb8b3dcff0a229815517 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Wed, 4 Jul 2018 13:23:21 +0700 Subject: reusing stream impls when parsing from 'input' To detect parsing from a top level input and to avoid appending it to a parser's top level (thus creating a tree), added a new type for input so we can replace the parser's top level. This change forces us to a two level structure where stream seq is at the top and stream data underneath. Requires us to hack the destructor so that we don't multiple delete the stream impl. --- src/program.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/program.h') diff --git a/src/program.h b/src/program.h index dc96ef16..4c5f1834 100644 --- a/src/program.h +++ b/src/program.h @@ -102,6 +102,7 @@ struct colm_sections long argv_el_id; long stds_el_id; long struct_inbuilt_id; + long struct_input_id; long struct_stream_id; void (*fsm_execute)( struct pda_run *pda_run, struct stream_impl *input_stream ); -- cgit v1.2.1