1
0
forked from GitHub/gf-core

support syntagmatic words

This commit is contained in:
Krasimir Angelov
2024-01-02 16:31:22 +01:00
parent 51ea3926a5
commit 68da9226b1
8 changed files with 272 additions and 76 deletions

View File

@@ -269,6 +269,12 @@ struct PGF_INTERNAL_DECL PgfLRShift {
size_t r;
};
struct PGF_INTERNAL_DECL PgfLRShiftKS {
size_t next_state;
ref<PgfSequence> seq;
size_t sym_idx;
};
struct PgfLRReduceArg;
struct PGF_INTERNAL_DECL PgfLRProduction {
@@ -300,6 +306,7 @@ struct PGF_INTERNAL_DECL PgfLRReduce {
struct PGF_INTERNAL_DECL PgfLRState {
ref<Vector<PgfLRShift>> shifts;
ref<Vector<PgfLRShiftKS>> tokens;
ref<Vector<PgfLRReduce>> reductions;
};