Class GreaterThanExpressionFactory
- Namespace
- Albatross.Expression.Parsing
- Assembly
- Albatross.Expression.dll
Factory class that parses greater-than comparison operators from text input. Recognizes the ">" operator but excludes ">=" to avoid conflicts.
public class GreaterThanExpressionFactory : IExpressionFactory<GreaterThan>
- Inheritance
-
GreaterThanExpressionFactory
- Implements
- Inherited Members
- Extension Methods
Methods
Parse(string, int, out int)
Attempts to parse a greater-than operator from the specified position in the text. Uses a negative lookahead to ensure it doesn't match ">=" operators.
public GreaterThan? Parse(string text, int start, out int next)
Parameters
textstringThe input text to parse.
startintThe starting position in the text.
nextintWhen this method returns, contains the next position after the parsed operator.
Returns
- GreaterThan
A GreaterThan infix expression if parsing succeeds; otherwise, null.