C# 클래스 CodeBox.CodeLexer.TokenList

파일 보기 프로젝트 열기: anaimi/codebox 1 사용 예제들

공개 메소드들

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

비공개 메소드들

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

메소드 상세

Add() 공개 메소드

public Add ( int index, TokenType type, string value ) : void
index int
type TokenType
value string
리턴 void

Backtrack() 공개 메소드

public Backtrack ( ) : void
리턴 void

Consume() 공개 메소드

public Consume ( ) : void
리턴 void

ConsumeBlockBackward() 공개 메소드

public ConsumeBlockBackward ( ) : void
리턴 void

ConsumeBlockForward() 공개 메소드

public ConsumeBlockForward ( ) : void
리턴 void

CurrentIndex() 공개 메소드

public CurrentIndex ( ) : int
리턴 int

GotoToken() 공개 메소드

public GotoToken ( Token token ) : void
token Token
리턴 void

HasNext() 공개 메소드

public HasNext ( ) : bool
리턴 bool

HasPrevious() 공개 메소드

public HasPrevious ( ) : bool
리턴 bool

Next() 공개 메소드

public Next ( ) : Token
리턴 Token

Next() 공개 메소드

public Next ( int ahead ) : Token
ahead int
리턴 Token

Previous() 공개 메소드

public Previous ( ) : Token
리턴 Token

TokenList() 공개 메소드

public TokenList ( ) : System
리턴 System

TokenList() 공개 메소드

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
리턴 System

TokenList() 공개 메소드

public TokenList ( string code, IEnumerable keywords ) : System
code string
keywords IEnumerable
리턴 System

TokenList() 공개 메소드

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