C# Class SimpleC.Types.Tokens.KeywordToken

Inheritance: Token
Afficher le fichier Open project: nrother/simple-c

Méthodes publiques

Méthode Description
IsKeyword ( string s ) : bool

Returns true, if the given string is a known keyword, false otherwise.

KeywordToken ( string content ) : System
ToVariableType ( ) : VariableType

Returns the assisated VariableType for this keyword, if this keyword represents a variable type. Throws an excepion otherwise.

Method Details

IsKeyword() public static méthode

Returns true, if the given string is a known keyword, false otherwise.
public static IsKeyword ( string s ) : bool
s string
Résultat bool

KeywordToken() public méthode

public KeywordToken ( string content ) : System
content string
Résultat System

ToVariableType() public méthode

Returns the assisated VariableType for this keyword, if this keyword represents a variable type. Throws an excepion otherwise.
public ToVariableType ( ) : VariableType
Résultat VariableType