Class AnyTextGrammar.GrammarStartRuleClassRuleRule
Rule to assign the contents of the inner rule to StartRule
public class AnyTextGrammar.GrammarStartRuleClassRuleRule : AssignModelReferenceRule<IGrammar, IClassRule>
- Inheritance
-
AnyTextGrammar.GrammarStartRuleClassRuleRule
- Inherited Members
Properties
Feature
Gets the name of the feature that is assigned
protected override string Feature { get; }
Property Value
TokenType
Gets the token type of tokens created for this rule
public override string TokenType { get; }
Property Value
Methods
GetValue(IGrammar, ParseContext)
Gets the value of the given property
protected override IClassRule GetValue(IGrammar semanticElement, ParseContext context)
Parameters
semanticElementIGrammarthe context element
contextParseContextthe parsing context
Returns
- IClassRule
the property value
Initialize(GrammarContext)
Initializes the current grammar rule
public override void Initialize(GrammarContext context)
Parameters
contextGrammarContextthe 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.
SetValue(IGrammar, IClassRule, ParseContext)
Assigns the value to the given semantic element
protected override void SetValue(IGrammar semanticElement, IClassRule propertyValue, ParseContext context)
Parameters
semanticElementIGrammarthe context element
propertyValueIClassRulethe value to assign
contextParseContextthe parsing context