C# Class Acquarella.Lexers.Lexer

Show file Open project: ajlopez/Acquarella Class Usage Examples

Public Methods

Method Description
Configure ( LexerConfiguration config ) : void
Configure ( string name ) : void
ConfigureFromFile ( string filename ) : void
GetTokens ( string text ) : IEnumerable

Private Methods

Method 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 method

public Configure ( LexerConfiguration config ) : void
config Acquarella.Configuration.LexerConfiguration
return void

Configure() public method

public Configure ( string name ) : void
name string
return void

ConfigureFromFile() public method

public ConfigureFromFile ( string filename ) : void
filename string
return void

GetTokens() public method

public GetTokens ( string text ) : IEnumerable
text string
return IEnumerable