mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-30 06:52:49 -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:
@@ -52,7 +52,8 @@ namespace PGFSharp
|
||||
end_phrase = EndPhrase,
|
||||
symbol_ne = null,
|
||||
symbol_bind = null,
|
||||
symbol_capit = null
|
||||
symbol_capit = null,
|
||||
symbol_meta = SymbolMeta
|
||||
};
|
||||
}
|
||||
|
||||
@@ -80,6 +81,10 @@ namespace PGFSharp
|
||||
else
|
||||
stack.Peek ().AddChild (b);
|
||||
}
|
||||
|
||||
private void SymbolMeta(IntPtr self, int meta_id) {
|
||||
stack.Peek().AddChild(new StringChildBracket("?"));
|
||||
}
|
||||
|
||||
public Bracket Build() {
|
||||
return final;
|
||||
|
||||
Reference in New Issue
Block a user