C# Class Scorpio.Compiler.ScriptLexer

脚本语法解析
Show file Open project: qingfeng346/Scorpio-CSharp Class Usage Examples

Private Properties

Property Type Description
AddToken void
AddToken void
IgnoreLine void
IsHexDigit bool
ReadChar char
ThrowInvalidCharacterException void
UndoChar void

Public Methods

Method Description
GetBreviary ( ) : String

获得整段字符串的摘要

GetTokens ( ) : List

解析字符串

ScriptLexer ( String buffer, String strBreviary ) : System

Private Methods

Method Description
AddToken ( TokenType type ) : void
AddToken ( TokenType type, object lexeme ) : void
IgnoreLine ( ) : void
IsHexDigit ( char c ) : bool
ReadChar ( ) : char
ThrowInvalidCharacterException ( char ch ) : void
UndoChar ( ) : void

Method Details

GetBreviary() public method

获得整段字符串的摘要
public GetBreviary ( ) : String
return String

GetTokens() public method

解析字符串
public GetTokens ( ) : List
return List

ScriptLexer() public method

public ScriptLexer ( String buffer, String strBreviary ) : System
buffer String
strBreviary String
return System