コード例 #1
0
ファイル: TokenIdentifier.cs プロジェクト: BowsiePup/Ion
 public static bool IsType(Token token, ParserContext context)
 {
     return(TokenIdentifier.IsPrimitiveType(token.Type) ||
            context.SymbolTable.structs.Contains(token.Value));
 }
コード例 #2
0
ファイル: TokenIdentifier.cs プロジェクト: BowsiePup/Ion
 /// <summary>
 /// Determine if the provided token is
 /// representing a type
 /// </summary>
 public static bool IsPrimitiveType(Token token)
 {
     return(TokenIdentifier.IsPrimitiveType(token.Type));
 }