C# 클래스 Lex.Token

파일 보기 프로젝트 열기: YourLocalFax/OLD-Score 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
span Span
type TokenType

공개 메소드들

메소드 설명
ToString ( ) : string

Returns a more debug friendly representation of this token.

비공개 메소드들

메소드 설명
New ( TokenType type, Span span, string image ) : Token

Create a new token. This is basically an alias for the private constructor. The only resong for the existence of this method is consistency with the other means of constructing a token.

NewBuiltinTyName ( Span span, string name ) : Token

Returns a new token for a builtin type name.

NewChar ( Span span, uint value ) : Token

Returns a new token for a character literal.

NewFloat ( Span span, double value, string image, string suffix ) : Token

Returns a new token for a float literal.

NewIdentifier ( Span span, string image ) : Token

Returns a new token for an identifier.

NewIdentifierOperator ( Span span, string image ) : Token

Returns a new token for an identifier operator.

NewInteger ( Span span, ulong value, string image, string suffix ) : Token

Returns a new token for an integer literal.

NewKeyword ( TokenType keyword, Span span, string image ) : Token

Returns a new token for a keyword.

NewOperator ( Span span, string image ) : Token

Returns a new token for an operator.

NewOperator ( TokenType type, Span span, string image ) : Token

Returns a new token for a specific reserved operator.

NewString ( Span span, string value, bool verbatim, bool cstr ) : Token

Returns a new token for a string literal.

NewSymbol ( Span span, string image ) : Token

Returns a new token for a symbol.

Token ( TokenType type, Span span, string image, string>.Func dbg = null ) : System

메소드 상세

ToString() 공개 메소드

Returns a more debug friendly representation of this token.
public ToString ( ) : string
리턴 string

프로퍼티 상세

span 공개적으로 프로퍼티

Where in the source file this token is.
public Span span
리턴 Span

type 공개적으로 프로퍼티

The type of this token.
public TokenType type
리턴 TokenType