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:
Krasimir Angelov
2017-08-07 16:39:19 +02:00
parent c08c44a17d
commit 833fd77f00
10 changed files with 132 additions and 19 deletions

View File

@@ -221,6 +221,9 @@ namespace PGFSharp
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void LinFuncSymbolCapitalization(IntPtr self);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void LinFuncSymbolMeta(IntPtr self, int meta_id);
[StructLayout(LayoutKind.Sequential)]
public struct PgfLinFuncs
{
@@ -241,6 +244,9 @@ namespace PGFSharp
[MarshalAs(UnmanagedType.FunctionPtr)]
public LinFuncSymbolCapitalization symbol_capit;
[MarshalAs(UnmanagedType.FunctionPtr)]
public LinFuncSymbolMeta symbol_meta;
}
#endregion