From 63db79925f869f0fa5336764325d80e80668af76 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Tue, 15 May 2018 00:24:57 -0400 Subject: added an instruction for the final reduce commit Was doing this in the parse finish instruction. Moving this out is the last change to make the frag and finish parses identical. --- src/bytecode.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/bytecode.c') diff --git a/src/bytecode.c b/src/bytecode.c index ed2a464b..124d8d61 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -2748,7 +2748,6 @@ again: break; } - case IN_PARSE_FINISH_W: { half_t stop_id; read_half( stop_id ); @@ -2817,6 +2816,17 @@ again: break; } + case IN_REDUCE_COMMIT: { + stream_t *stream = vm_pop_stream(); + vm_push_stream( stream ); + + debug( prg, REALM_BYTECODE, "IN_REDUCE_COMMIT\n" ); + + colm_parse_reduce_commit( prg, sp, stream->parser->pda_run ); + break; + } + + case IN_INPUT_PULL_WV: { debug( prg, REALM_BYTECODE, "IN_INPUT_PULL_WV\n" ); -- cgit v1.2.1