C# Class ExpressiveAnnotations.Analysis.Lexer

Performs the lexical analysis of a specified logical expression.
Type is thread safe.
Mostra file Open project: jwaliszko/ExpressiveAnnotations Class Usage Examples

Private Properties

Property Type Description
ConvertTokenValue object
Next bool
ParseStringLiteral string

Public Methods

Method Description
Analyze ( string expression ) : IEnumerable

Analyzes a specified logical expression and extracts a sequence of tokens.

Lexer ( ) : System

Initializes a new instance of the Lexer class.

Private Methods

Method Description
ConvertTokenValue ( TokenType type, string value ) : object
Next ( ) : bool
ParseStringLiteral ( string value ) : string

Method Details

Analyze() public method

Analyzes a specified logical expression and extracts a sequence of tokens.
expression is null
public Analyze ( string expression ) : IEnumerable
expression string The logical expression.
return IEnumerable

Lexer() public method

Initializes a new instance of the Lexer class.
public Lexer ( ) : System
return System