mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-11 04:02:52 -06:00
refactoring
This commit is contained in:
@@ -666,7 +666,8 @@ void PgfParser::Production::trace(PgfParser::Choice *res) {
|
||||
#endif
|
||||
}
|
||||
|
||||
PgfParser::PgfParser(ref<PgfConcr> concr, ref<PgfConcrLincat> start, PgfText *sentence, PgfMarshaller *m)
|
||||
PgfParser::PgfParser(ref<PgfConcr> concr, ref<PgfConcrLincat> start, PgfText *sentence,
|
||||
PgfMarshaller *m, PgfUnmarshaller *u)
|
||||
{
|
||||
this->concr = concr;
|
||||
this->start = start;
|
||||
@@ -675,6 +676,7 @@ PgfParser::PgfParser(ref<PgfConcr> concr, ref<PgfConcrLincat> start, PgfText *se
|
||||
this->before = NULL;
|
||||
this->after = NULL;
|
||||
this->m = m;
|
||||
this->u = u;
|
||||
}
|
||||
|
||||
void PgfParser::space(PgfTextSpot *start, PgfTextSpot *end, PgfExn* err)
|
||||
@@ -769,7 +771,7 @@ void PgfParser::prepare()
|
||||
before = after;
|
||||
}
|
||||
|
||||
PgfExpr PgfParser::fetch(PgfDB *db, PgfUnmarshaller *u, prob_t *prob)
|
||||
PgfExpr PgfParser::fetch(PgfDB *db, prob_t *prob)
|
||||
{
|
||||
DB_scope scope(db, READER_SCOPE);
|
||||
|
||||
@@ -794,10 +796,6 @@ PgfExpr PgfParser::fetch(PgfDB *db, PgfUnmarshaller *u, prob_t *prob)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void PgfParser::free_refs(PgfUnmarshaller *u)
|
||||
{
|
||||
}
|
||||
|
||||
PgfParser::~PgfParser()
|
||||
{
|
||||
free(sentence);
|
||||
|
||||
Reference in New Issue
Block a user