complete the linearization of pre

This commit is contained in:
krangelov
2021-12-03 11:29:01 +01:00
parent baf78528d3
commit df82e1e7ca
4 changed files with 85 additions and 6 deletions

View File

@@ -49,6 +49,18 @@ class PGF_INTERNAL_DECL PgfLinearizer : public PgfUnmarshaller {
bool capit;
bool allcapit;
struct PreStack {
PreStack *next;
TreeNode *node;
ref<PgfSymbolKP> sym_kp;
bool bind;
bool capit;
bool allcapit;
};
PreStack *pre_stack;
void flush_pre_stack(PgfLinearizationOutputIface *out, PgfText *token);
void linearize(PgfLinearizationOutputIface *out, TreeNode *node, ref<Vector<PgfSymbol>> syms);
void linearize(PgfLinearizationOutputIface *out, TreeNode *node, size_t lindex);