Table of Contents

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

text string

The input text to parse.

start int

The starting position in the text.

next int

When this method returns, contains the next position after the parsed operator.

Returns

GreaterThan

A GreaterThan infix expression if parsing succeeds; otherwise, null.