C# Class SimpleC.Types.Tokens.KeywordToken

Inheritance: Token
Exibir arquivo Open project: nrother/simple-c

Public Methods

Method 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 method

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

KeywordToken() public method

public KeywordToken ( string content ) : System
content string
return System

ToVariableType() public method

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