public virtual int GetTokenType( string tokenName )
{
int i;
if ( tokenName[0] == '\'' )
{
if ( composite.StringLiteralToTypeMap.TryGetValue( tokenName, out i ) )
return i;
}
else
{
// must be a label like ID
if ( composite.TokenIDToTypeMap.TryGetValue( tokenName, out i ) )
return i;
}
return Label.INVALID;
}