C# Class SData.Internal.Lexer

Mostrar archivo Open project: knat/SData Class Usage Examples

Private Properties

Property Type Description
ConsumeChar void
CreateNameToken Token
CreateNumberToken Token
CreateSingleTextSpan TextSpan
CreateToken Token
CreateTokenAndConsumeChar Token
DecValue int
ErrorAndThrow void
ErrorAndThrow void
GetChar char
GetNextChar char
GetNextNextChar char
GetStringBuilder StringBuilder
HexValue int
Init Lexer
IsCombiningChar bool
IsConnectingChar bool
IsDecDigit bool
IsDecimalDigitChar bool
IsFormattingChar bool
IsHexDigit bool
IsLetterChar bool
IsNewLine bool
IsWhitespace bool
Lexer System
MarkTokenStart void
ProcessCharEscapeSequence void

Public Methods

Method Description
Clear ( ) : void
Get ( string filePath, TextReader reader, LoadingContext context ) : Lexer
GetToken ( ) : Token
IsIdentifierPartCharacter ( char ch ) : bool
IsIdentifierStartCharacter ( char ch ) : bool

Private Methods

Method Description
ConsumeChar ( bool checkNewLine = false ) : void
CreateNameToken ( StringBuilder sb, bool isNormal = true ) : Token
CreateNumberToken ( StringBuilder sb, bool inFraction ) : Token
CreateSingleTextSpan ( ) : TextSpan
CreateToken ( int tokenKind, string value ) : Token
CreateTokenAndConsumeChar ( char ch ) : Token
DecValue ( char ch ) : int
ErrorAndThrow ( string errMsg ) : void
ErrorAndThrow ( string errMsg, TextSpan textSpan ) : void
GetChar ( int offset ) : char
GetNextChar ( ) : char
GetNextNextChar ( ) : char
GetStringBuilder ( ) : StringBuilder
HexValue ( char ch ) : int
Init ( string filePath, TextReader reader, LoadingContext context ) : Lexer
IsCombiningChar ( UnicodeCategory cat ) : bool
IsConnectingChar ( UnicodeCategory cat ) : bool
IsDecDigit ( char ch ) : bool
IsDecimalDigitChar ( UnicodeCategory cat ) : bool
IsFormattingChar ( UnicodeCategory cat ) : bool
IsHexDigit ( char ch ) : bool
IsLetterChar ( UnicodeCategory cat ) : bool
IsNewLine ( char ch ) : bool
IsWhitespace ( char ch ) : bool
Lexer ( ) : System
MarkTokenStart ( ) : void
ProcessCharEscapeSequence ( StringBuilder sb ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

Get() public static method

public static Get ( string filePath, TextReader reader, LoadingContext context ) : Lexer
filePath string
reader TextReader
context LoadingContext
return Lexer

GetToken() public method

public GetToken ( ) : Token
return Token

IsIdentifierPartCharacter() public static method

public static IsIdentifierPartCharacter ( char ch ) : bool
ch char
return bool

IsIdentifierStartCharacter() public static method

public static IsIdentifierStartCharacter ( char ch ) : bool
ch char
return bool