From a8eeb497670fb0f2ffab1f9b070808df965415be Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Mon, 7 Aug 2017 16:39:19 +0200 Subject: the linearizer API now allows to detect metavariables. This is used for instancein the lookup where the tokens produced from the metavariables are interpreted as distinct from all other tokens. --- src/runtime/c/pgf/linearizer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/runtime/c/pgf/linearizer.h') diff --git a/src/runtime/c/pgf/linearizer.h b/src/runtime/c/pgf/linearizer.h index 816181090..f2fea4221 100644 --- a/src/runtime/c/pgf/linearizer.h +++ b/src/runtime/c/pgf/linearizer.h @@ -33,6 +33,8 @@ typedef struct { } PgfCncTreeApp; typedef struct { + PgfMetaId id; + size_t n_vars; PgfPrintContext* context; @@ -94,6 +96,9 @@ struct PgfLinFuncs /// capitalization void (*symbol_capit)(PgfLinFuncs** self, PgfCapitState capit); + + /// meta variable + void (*symbol_meta)(PgfLinFuncs** self, PgfMetaId id); }; /// Linearize a concrete syntax tree. -- cgit v1.2.3