C# Class BalticAmadeus.FluentMdx.Lexer.Token

Represents an immutable lexical analysis result as chunk of recognized text.
Show file Open project: BalticAmadeus/FluentMdx

Public Properties

Property Type Description
Type TokenType
Value string

Public Methods

Method Description
ToString ( ) : string

Converts the value of the current Token object to its equivalent string representation.

Token ( TokenType type, string value )

Initializes a new instance of Token with provided type and value.

Method Details

ToString() public method

Converts the value of the current Token object to its equivalent string representation.
public ToString ( ) : string
return string

Token() public method

Initializes a new instance of Token with provided type and value.
public Token ( TokenType type, string value )
type TokenType Type of token.
value string Recognized token value.

Property Details

Type public property

Represents the TokenType of Token. This field is read-only.
public TokenType Type
return TokenType

Value public property

Represents the recognized value of Token. This field is read-only.
public string Value
return string