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/pdarun.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/pdarun.h') diff --git a/src/pdarun.h b/src/pdarun.h index 9190b430..41020ebb 100644 --- a/src/pdarun.h +++ b/src/pdarun.h @@ -317,7 +317,6 @@ struct pda_run long steps; long target_steps; - /* The shift count simply tracks the number of shifts that have happend. * The commit shift count is the shift count when the last commit occurred. * If we back up to this number of shifts then we decide we cannot proceed. -- cgit v1.2.1