mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-29 22:42:52 -06:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user