Table of Contents

Interface IExpressionFactory<T>

Namespace
Albatross.Expression.Parsing
Assembly
Albatross.Expression.dll

Factory interface for parsing tokens from expression text.

public interface IExpressionFactory<out T> where T : class, IToken

Type Parameters

T

The type of token this factory produces.

Extension Methods

Methods

Parse(string, int, out int)

Attempts to parse a token from the given text starting at the specified position.

T? Parse(string text, int start, out int next)

Parameters

text string

The expression text to parse.

start int

The starting position in the text to begin parsing.

next int

When this method returns, contains the position after the parsed token, or the original start position if parsing failed.

Returns

T

The parsed token if successful; otherwise, null.