Class AnyTextGrammar.ChoiceExpressionAlternativesFormattedSequenceOrExpressionRule
Rule to assign the contents of the inner rule to Alternatives
public class AnyTextGrammar.ChoiceExpressionAlternativesFormattedSequenceOrExpressionRule : AddAssignRule<IChoiceExpression, IFormattedExpression>
- Inheritance
-
AnyTextGrammar.ChoiceExpressionAlternativesFormattedSequenceOrExpressionRule
- Inherited Members
Properties
Feature
Gets the name of the feature that is assigned
protected override string Feature { get; }
Property Value
Methods
GetCollection(IChoiceExpression, ParseContext)
Obtains the child collection
public override ICollection<IFormattedExpression> GetCollection(IChoiceExpression semanticElement, ParseContext context)
Parameters
semanticElement
IChoiceExpressionthe context element
context
ParseContextthe parse context in which the collection is obtained
Returns
- ICollection<IFormattedExpression>
a collection of values
Initialize(GrammarContext)
Initializes the current grammar rule
public override void Initialize(GrammarContext context)
Parameters
context
GrammarContextthe grammar context in which the rule is initialized
Remarks
Do not modify the contents of this method as it will be overridden as the contents of the AnyText file change.