C# Class JinianNet.JNTemplate.Parser.TemplateLexer

词素分析器
Show file Open project: jiniannet/jntemplate Class Usage Examples

Public Methods

Method Description
Parse ( ) : JinianNet.JNTemplate.Parser.Node.Token[]

分析所有Token

Reset ( ) : void

重置分析器

TemplateLexer ( String text ) : System

TemplateLexer

Private Methods

Method Description
AddToken ( JinianNet.JNTemplate.Parser.Node.Token token ) : void
AddToken ( TokenKind kind ) : void
GetPrevCharCount ( Char c ) : int
GetToken ( TokenKind tokenKind ) : JinianNet.JNTemplate.Parser.Node.Token
GetTokenKind ( Char c ) : TokenKind
IsTagEnd ( ) : System.Boolean
IsTagStart ( ) : System.Boolean
Next ( ) : System.Boolean
Next ( Int32 i ) : System.Boolean
ReadCommentToken ( ) : void
ReadEndToken ( ) : System.Boolean
ReadToken ( ) : void

Method Details

Parse() public method

分析所有Token
public Parse ( ) : JinianNet.JNTemplate.Parser.Node.Token[]
return JinianNet.JNTemplate.Parser.Node.Token[]

Reset() public method

重置分析器
public Reset ( ) : void
return void

TemplateLexer() public method

TemplateLexer
public TemplateLexer ( String text ) : System
text String 待分析内容
return System