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
TThe 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
textstringThe expression text to parse.
startintThe starting position in the text to begin parsing.
nextintWhen 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.