Method | Description | |
---|---|---|
Evaluate ( |
Evaluate a tag expression.
|
Method | Description | |
---|---|---|
CreateEmptyList ( ) : List |
Creates a new empty collection.
|
|
Evaluate ( ) : IEnumerable |
Evaluate an expression.
|
|
ExpressionEvaluator ( |
Create an expression evaluator.
|
|
Match ( string expected ) : void |
Match a sequence of characters.
|
|
ReadExpression ( ) : IEnumerable |
Evaluate an expression. We need to factor out left recursion, so: {Expression} := {Expression} + {Term} | {Expression} - {Term} | {Term} becomes: {Expression} := {Term}{Expression'} {Expression'} := #empty# + {Term}{Expression'} - {Term}{Expression'} |
|
ReadExpression ( IEnumerable |
Evaluate an expression. Non-terminal created for left-factoring: {Expression'} := #empty# + {Term}{Expression'} - {Term}{Expression'} |
|
ReadFactor ( ) : IEnumerable |
Evaluate a factor. {Factor} := !{Factor} | ({Expression}) | {Tag} |
|
ReadTag ( ) : IEnumerable |
Evaluate a tag. {Tag} := All | [^InvalidCharacters]+ |
|
ReadTerm ( ) : IEnumerable |
Evaluate a term. We need to factor out left recursion, so: {Term} := {Factor} * {Term} | {Factor} becomes: {Term} := {Factor}{Term'} {Term'} := #empty# ^ {Factor}{Term'} |
|
ReadTerm ( IEnumerable |
Evaluate a term. Non-terminal created for left-factoring: {Term'} := #empty# ^ {Factor}{Term'} |
|
TryMatch ( string expected ) : bool |
Try to match a sequence of characters.
|
public static Evaluate ( |
||
owner | The owner object. | |
tagExpression | string | Tag expression. |
return | IEnumerable |