Class Token
Inheritance
System.Object
Token
Assembly: Spruce.dll
Syntax
public abstract class Token : object
Constructors
|
Improve this Doc
View Source
Token(Boolean)
Declaration
protected Token(bool aIgnoreCase = false)
Parameters
Type |
Name |
Description |
System.Boolean |
aIgnoreCase |
|
|
Improve this Doc
View Source
Token(String, String, Boolean)
Declaration
protected Token(string aChars, string aFirstChars = null, bool aIgnoreCase = false)
Parameters
Type |
Name |
Description |
System.String |
aChars |
|
System.String |
aFirstChars |
|
System.Boolean |
aIgnoreCase |
|
Fields
|
Improve this Doc
View Source
mChars
Declaration
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
mChildren
Declaration
protected List<Token> mChildren
Field Value
Type |
Description |
List<Token> |
|
|
Improve this Doc
View Source
mFirstChars
Declaration
protected string mFirstChars
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
mIgnoreCase
Declaration
protected readonly bool mIgnoreCase
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
mMaxLength
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Properties
|
Improve this Doc
View Source
Emitter
Declaration
public Token.Action Emitter { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddEmitter(Token.Action, Type[])
Declaration
protected void AddEmitter(Token.Action aEmitter, params Type[] aTokenTypes)
Parameters
Type |
Name |
Description |
Token.Action |
aEmitter |
|
Type[] |
aTokenTypes |
|
|
Improve this Doc
View Source
AddToken(Type)
Declaration
protected Token AddToken(Type aTokenType)
Parameters
Type |
Name |
Description |
Type |
aTokenType |
|
Returns
|
Improve this Doc
View Source
BuildChars(String[], String)
Declaration
protected void BuildChars(string[] aList, string aNoobChars = "")
Parameters
Type |
Name |
Description |
System.String[] |
aList |
|
System.String |
aNoobChars |
|
|
Improve this Doc
View Source
Check(String)
Declaration
protected virtual bool Check(string aText)
Parameters
Type |
Name |
Description |
System.String |
aText |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
CheckChar(Int32, Char)
Declaration
protected virtual bool CheckChar(int aLocalPos, char aChar)
Parameters
Type |
Name |
Description |
System.Int32 |
aLocalPos |
|
System.Char |
aChar |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Next(String, ref Int32)
Declaration
public CodePoint Next(string aText, ref int rStart)
Parameters
Type |
Name |
Description |
System.String |
aText |
|
System.Int32 |
rStart |
|
Returns
|
Improve this Doc
View Source
Parse(String, ref Int32)
Declaration
public virtual object Parse(string aText, ref int rStart)
Parameters
Type |
Name |
Description |
System.String |
aText |
|
System.Int32 |
rStart |
|
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
SetChars(String, String)
Declaration
protected void SetChars(string aChars, string aFirstChars = null)
Parameters
Type |
Name |
Description |
System.String |
aChars |
|
System.String |
aFirstChars |
|
|
Improve this Doc
View Source
SkipWhiteSpace(String, ref Int32)
Declaration
protected void SkipWhiteSpace(string aText, ref int rStart)
Parameters
Type |
Name |
Description |
System.String |
aText |
|
System.Int32 |
rStart |
|
|
Improve this Doc
View Source
Declaration
protected virtual object Transform(string aText)
Parameters
Type |
Name |
Description |
System.String |
aText |
|
Returns
Type |
Description |
System.Object |
|