C# 클래스 BalticAmadeus.FluentMdx.Lexer.Token

Represents an immutable lexical analysis result as chunk of recognized text.
파일 보기 프로젝트 열기: BalticAmadeus/FluentMdx

공개 프로퍼티들

프로퍼티 타입 설명
Type TokenType
Value string

공개 메소드들

메소드 설명
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.

메소드 상세

ToString() 공개 메소드

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

Token() 공개 메소드

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.

프로퍼티 상세

Type 공개적으로 프로퍼티

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

Value 공개적으로 프로퍼티

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