Class LessThanExpressionFactory
- Namespace
- Albatross.Expression.Parsing
- Assembly
- Albatross.Expression.dll
Instead of using infix operator parser, regex is used to match the operator to avoid ambiguity with other operators like <= and <>
public class LessThanExpressionFactory : IExpressionFactory<LessThan>
- Inheritance
-
LessThanExpressionFactory
- Implements
- Inherited Members
- Extension Methods
Methods
Parse(string, int, out int)
Attempts to parse a token from the given text starting at the specified position.
public LessThan? 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
- LessThan
The parsed token if successful; otherwise, null.