C# Class SharpOS.Tools.Tokenizer

Afficher le fichier Open project: sharpos/SharpOS Class Usage Examples

Méthodes publiques

Свойство Type Description
EndStringSeqType TokenType
EndStringSequence string
IgnoreWhitespace bool
PrimitiveDecider DPrimitiveDecider
SpecialTokens string[]
StringMode bool
Text string
WhitespaceChars char[]

Protected Properties

Свойство Type Description
_Caret int
_CommentTokenPairs string[]
_Line int
_Queue List
_QuoteTokenPairs string[]

Méthodes publiques

Méthode Description
GetLineInfo ( int &line, int &col ) : void
IsCommentToken ( string str, int cmpn ) : bool
IsQuoteToken ( string str ) : bool
IsQuoteToken ( string str, int cmpn ) : bool
IsSpecialToken ( string str ) : bool
MaybeCommentToken ( string str, int cmpn ) : bool
MaybeQuoteToken ( string str ) : bool
MaybeQuoteToken ( string str, int cmpn ) : bool
MaybeSpecialToken ( string str ) : bool
PutBack ( ) : void
PutBack ( Token t ) : void
PutBack ( bool reverse ) : void
Read ( ) : Token
Tokenizer ( string text, bool ignws ) : System

Private Methods

Méthode Description
_Read ( ) : Token
_StringRead ( ) : Token

Method Details

GetLineInfo() public méthode

public GetLineInfo ( int &line, int &col ) : void
line int
col int
Résultat void

IsCommentToken() public méthode

public IsCommentToken ( string str, int cmpn ) : bool
str string
cmpn int
Résultat bool

IsQuoteToken() public méthode

public IsQuoteToken ( string str ) : bool
str string
Résultat bool

IsQuoteToken() public méthode

public IsQuoteToken ( string str, int cmpn ) : bool
str string
cmpn int
Résultat bool

IsSpecialToken() public méthode

public IsSpecialToken ( string str ) : bool
str string
Résultat bool

MaybeCommentToken() public méthode

public MaybeCommentToken ( string str, int cmpn ) : bool
str string
cmpn int
Résultat bool

MaybeQuoteToken() public méthode

public MaybeQuoteToken ( string str ) : bool
str string
Résultat bool

MaybeQuoteToken() public méthode

public MaybeQuoteToken ( string str, int cmpn ) : bool
str string
cmpn int
Résultat bool

MaybeSpecialToken() public méthode

public MaybeSpecialToken ( string str ) : bool
str string
Résultat bool

PutBack() public méthode

public PutBack ( ) : void
Résultat void

PutBack() public méthode

public PutBack ( Token t ) : void
t Token
Résultat void

PutBack() public méthode

public PutBack ( bool reverse ) : void
reverse bool
Résultat void

Read() public méthode

public Read ( ) : Token
Résultat Token

Tokenizer() public méthode

public Tokenizer ( string text, bool ignws ) : System
text string
ignws bool
Résultat System

Property Details

EndStringSeqType public_oe property

public TokenType EndStringSeqType
Résultat TokenType

EndStringSequence public_oe property

public string EndStringSequence
Résultat string

IgnoreWhitespace public_oe property

public bool IgnoreWhitespace
Résultat bool

PrimitiveDecider public_oe property

public DPrimitiveDecider PrimitiveDecider
Résultat DPrimitiveDecider

SpecialTokens public_oe property

public string[] SpecialTokens
Résultat string[]

StringMode public_oe property

public bool StringMode
Résultat bool

Text public_oe property

public string Text
Résultat string

WhitespaceChars public_oe property

public char[] WhitespaceChars
Résultat char[]

_Caret protected_oe property

protected int _Caret
Résultat int

_CommentTokenPairs protected_oe property

protected string[] _CommentTokenPairs
Résultat string[]

_Line protected_oe property

protected int _Line
Résultat int

_Queue protected_oe property

protected List _Queue
Résultat List

_QuoteTokenPairs protected_oe property

protected string[] _QuoteTokenPairs
Résultat string[]