Last issue wasn't gcc/CLang after all, but the lexer not getting built.

This commit is contained in:
Jeff Young 2020-08-06 23:16:12 +01:00
parent 1a3b7828f8
commit f244f3b24c
3 changed files with 19 additions and 0 deletions

View File

@ -346,6 +346,15 @@ public:
{
return (${enum}::T) DSNLEXER::PrevTok();
}
/**
* Function GetCurStrAsToken
* Used to support 'loose' matches (quoted tokens)
*/
${enum}::T GetCurStrAsToken()
{
return (${enum}::T) DSNLEXER::GetCurStrAsToken();
}
};
// example usage

View File

@ -5,6 +5,7 @@ clearance
condition
constraint
disallow
dummy
footprint
graphic
hole

View File

@ -331,6 +331,15 @@ public:
return prevTok;
}
/**
* Function GetCurStrAsToken
* Used to support "loose" matches (quoted tokens)
*/
int GetCurStrAsToken()
{
return findToken( curText );
}
//-----</overload return values to tokens>-----------------------------