allow the generation of literals under lambdas

This commit is contained in:
Krasimir Angelov
2023-03-14 12:12:14 +01:00
parent 9a0a730820
commit af7b504e36
2 changed files with 38 additions and 47 deletions
+2
View File
@@ -61,6 +61,7 @@ class PGF_INTERNAL_DECL PgfExhaustiveGenerator : public PgfUnmarshaller, public
ref<PgfPGF> pgf;
size_t depth;
PgfMarshaller *m;
PgfUnmarshaller *u;
PgfInternalMarshaller i_m;
Result *top_res;
size_t top_res_index;
@@ -124,6 +125,7 @@ class PGF_INTERNAL_DECL PgfExhaustiveGenerator : public PgfUnmarshaller, public
std::priority_queue<State*, std::vector<State*>, CompareState> queue;
std::vector<Scope*> scopes;
void predict_literal(ref<PgfText> cat, Result *res, PgfUnmarshaller *u);
void push_left_states(PgfProbspace space, PgfText *cat, Result *res, prob_t outside_prob);
public: