EbnfQuantifier Class
Represents a term within an EBNF production whose child term can be sequentially matched a specified minimum and maximum times.
public sealed class EbnfQuantifier : EbnfTerm
Constructors
EbnfQuantifier(EbnfQuantifiableTerm, int, int?)
Initializes an instance of the class.
public EbnfQuantifier(EbnfQuantifiableTerm child, int minimum, int? maximum)
| Parameter | Type | Description |
|---|---|---|
| child | EbnfQuantifiableTerm | The EbnfQuantifiableTerm to quantify. |
| minimum | int | The minimum number of instances that the term may occur. |
| maximum | int? | The maximum number of instances that the term may occur. |
Properties
Child
The EbnfQuantifiableTerm that is quantified by this term.
public EbnfQuantifiableTerm Child { get; set; }
Property Value
Remarks
Once the grammar has been compiled, the setter of this property will throw an exception if called.
Maximum
The maximum number of instances that the term may occur.
public int? Maximum { get; set; }
Property Value
- int?
Remarks
Once the grammar has been compiled, the setter of this property will throw an exception if called.
Minimum
The minimum number of instances that the term may occur.
public int Minimum { get; set; }
Property Value
Remarks
Once the grammar has been compiled, the setter of this property will throw an exception if called.
Methods
SetLabel(string)
Sets the Label for the term.
public override EbnfTerm SetLabel(string newLabel)
| Parameter | Type | Description |
|---|---|---|
| newLabel | string | The Label for the term. |
Returns
- EbnfTerm:
The modified term.
ToString()
Returns the string representation of this object.
Inherited Members
- EbnfTerm.OnComplete(ParserCallback)
- EbnfTerm.OnError(ParserErrorCallback)
- EbnfTerm.OnErrorContinue()
- EbnfTerm.OnErrorIgnore()
- EbnfTerm.OnErrorNoReport()
- EbnfTerm.OnInitialize(ParserCallback)
- EbnfTerm.OnSuccess(ParserCallback)
- EbnfTerm.ToEbnfString()
- EbnfTerm.ToProduction()
- EbnfTerm.CompleteCallback
- EbnfTerm.ErrorCallback
- EbnfTerm.InitializeCallback
- EbnfTerm.IsCompiled
- EbnfTerm.Label
- EbnfTerm.MatchCondition
- EbnfTerm.SuccessCallback
- object.GetType()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()