store the index with every production

This commit is contained in:
Krasimir Angelov
2023-12-15 10:25:09 +01:00
parent f2d269ff65
commit 9313b45a4f
2 changed files with 28 additions and 34 deletions

View File

@@ -274,6 +274,7 @@ struct PgfLRReduceArg;
struct PGF_INTERNAL_DECL PgfLRProduction {
ref<PgfConcrLin> lin;
size_t index;
ref<Vector<ref<PgfLRReduceArg>>> args;
};
@@ -299,8 +300,8 @@ struct PGF_INTERNAL_DECL PgfLRReduceArg {
struct PGF_INTERNAL_DECL PgfLRReduce {
object lin_obj;
size_t seq_idx;
size_t depth;
size_t r;
ref<Vector<object>> args;
};