Exemple #1
0
 public static bool IsType(Token token, ParserContext context)
 {
     return(TokenIdentifier.IsPrimitiveType(token.Type) ||
            context.SymbolTable.structs.Contains(token.Value));
 }
Exemple #2
0
 /// <summary>
 /// Determine if the provided token is
 /// representing a type
 /// </summary>
 public static bool IsPrimitiveType(Token token)
 {
     return(TokenIdentifier.IsPrimitiveType(token.Type));
 }