C# Class CodeBox.CodeLexer.TokenList

Afficher le fichier Open project: anaimi/codebox Class Usage Examples

Méthodes publiques

Méthode Description
Add ( int index, TokenType type, string value ) : void
Backtrack ( ) : void
Consume ( ) : void
ConsumeBlockBackward ( ) : void
ConsumeBlockForward ( ) : void
CurrentIndex ( ) : int
GotoToken ( Token token ) : void
HasNext ( ) : bool
HasPrevious ( ) : bool
Next ( ) : Token
Next ( int ahead ) : Token
Previous ( ) : Token
TokenList ( ) : System
TokenList ( TokenList outerTokens, int fromToken, int toToken ) : System

Creates a new token list by cloning outerTokens with a specified range (range is exclusive, not inclusive)

TokenList ( string code, IEnumerable keywords ) : System
TokenList ( string code, IEnumerable keywords, int startLine, int startPosition ) : System

Private Methods

Méthode Description
EatWhitespace ( string code, Position position ) : void
GenerateList ( string code, int startLine, int startPosition ) : void
IsKeyword ( string identifier ) : bool
ParseComments ( string code, Position position, bool recurse ) : int
ParseNumricConstant ( string code, Position position, List indices ) : string
ParseStringConstant ( string code, Position position, List indices ) : string

Method Details

Add() public méthode

public Add ( int index, TokenType type, string value ) : void
index int
type TokenType
value string
Résultat void

Backtrack() public méthode

public Backtrack ( ) : void
Résultat void

Consume() public méthode

public Consume ( ) : void
Résultat void

ConsumeBlockBackward() public méthode

public ConsumeBlockBackward ( ) : void
Résultat void

ConsumeBlockForward() public méthode

public ConsumeBlockForward ( ) : void
Résultat void

CurrentIndex() public méthode

public CurrentIndex ( ) : int
Résultat int

GotoToken() public méthode

public GotoToken ( Token token ) : void
token Token
Résultat void

HasNext() public méthode

public HasNext ( ) : bool
Résultat bool

HasPrevious() public méthode

public HasPrevious ( ) : bool
Résultat bool

Next() public méthode

public Next ( ) : Token
Résultat Token

Next() public méthode

public Next ( int ahead ) : Token
ahead int
Résultat Token

Previous() public méthode

public Previous ( ) : Token
Résultat Token

TokenList() public méthode

public TokenList ( ) : System
Résultat System

TokenList() public méthode

Creates a new token list by cloning outerTokens with a specified range (range is exclusive, not inclusive)
public TokenList ( TokenList outerTokens, int fromToken, int toToken ) : System
outerTokens TokenList
fromToken int
toToken int
Résultat System

TokenList() public méthode

public TokenList ( string code, IEnumerable keywords ) : System
code string
keywords IEnumerable
Résultat System

TokenList() public méthode

public TokenList ( string code, IEnumerable keywords, int startLine, int startPosition ) : System
code string
keywords IEnumerable
startLine int
startPosition int
Résultat System