C# Class Acquarella.Lexers.Lexer

Afficher le fichier Open project: ajlopez/Acquarella Class Usage Examples

Méthodes publiques

Méthode Description
Configure ( LexerConfiguration config ) : void
Configure ( string name ) : void
ConfigureFromFile ( string filename ) : void
GetTokens ( string text ) : IEnumerable

Private Methods

Méthode Description
GetNextToken ( ) : Token
IsDigit ( char ch ) : bool
IsKeyword ( string name ) : bool
IsLetter ( char ch ) : bool
IsLetterOrDigit ( char ch ) : bool
IsLineComment ( char ch ) : bool
IsOperator ( char ch ) : bool
IsStringDelimeter ( char ch ) : bool
IsWhiteSpace ( char ch ) : bool
SkipWhiteSpaces ( ) : void

Method Details

Configure() public méthode

public Configure ( LexerConfiguration config ) : void
config Acquarella.Configuration.LexerConfiguration
Résultat void

Configure() public méthode

public Configure ( string name ) : void
name string
Résultat void

ConfigureFromFile() public méthode

public ConfigureFromFile ( string filename ) : void
filename string
Résultat void

GetTokens() public méthode

public GetTokens ( string text ) : IEnumerable
text string
Résultat IEnumerable