1
0
forked from GitHub/gf-core

fix space leaks from the LR table maker

This commit is contained in:
Krasimir Angelov
2023-05-11 05:53:58 +02:00
parent 392f002124
commit 53e7cd5609
2 changed files with 63 additions and 50 deletions

View File

@@ -33,7 +33,7 @@ class PGF_INTERNAL_DECL PgfLRTableMaker
std::map<MD5Digest,State*> states;
std::map<Key,Predictions*,CompareKey> predictions;
std::map<Predictions*,State*> continuations;
std::vector<Item*> completed;
std::vector<PgfLRReduce> *reductions;
void process(Item *item);
void symbol(Item *item, PgfSymbol sym);
@@ -48,6 +48,7 @@ class PGF_INTERNAL_DECL PgfLRTableMaker
public:
PgfLRTableMaker(ref<PgfAbstr> abstr, ref<PgfConcr> concr);
ref<PgfLRTable> make();
~PgfLRTableMaker();
};
class PgfPrinter;