C# Класс ComponentFactory.Quicksilver.Binding.Tokeniser

Converts a string into a list of lexical tokens.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Next ( ) : Token

Gets the next token and removes it.

Next ( TokenType type ) : bool

If the next token matchs the requested type then just eat it.

Tokeniser ( string input, System.Language language ) : System

Initialize a new instance of the Tokeniser class.

Приватные методы

Метод Описание
NextCharOrStringLiteral ( char chars, int &index, bool escaped ) : Token
NextHexLiteral ( char chars, int start, int &index ) : Token
NextIdentifier ( char chars, int &index ) : Token
NextIntegerLiteral ( char chars, int start, int &index, int numberBase ) : Token
NextIntegerLiteralCS ( char chars, int start, int &index, int numberBase ) : Token
NextIntegerLiteralVB ( char chars, int start, int &index, int numberBase ) : Token
NextNumberCodedLiteralVB ( char chars, int &index, int numberBase ) : Token
NextNumberLiteral ( char chars, int &index ) : Token
NextRealLiteral ( char chars, int start, int &index ) : Token
NextToken ( char chars, int &index ) : Token
Tokeniser ( ) : System

Описание методов

Next() публичный Метод

Gets the next token and removes it.
public Next ( ) : Token
Результат Token

Next() публичный Метод

If the next token matchs the requested type then just eat it.
public Next ( TokenType type ) : bool
type TokenType Type to eat if found.
Результат bool

Tokeniser() публичный Метод

Initialize a new instance of the Tokeniser class.
public Tokeniser ( string input, System.Language language ) : System
input string String to convert into a series of tokens.
language System.Language Language used for parsing.
Результат System