EbnfAlternation Class
Represents an alternation expression within an EBNF production.
public sealed class EbnfAlternation : EbnfQuantifiableTerm, IGrammarNode
- Inheritance:
- Object EbnfTerm EbnfQuantifiableTerm Object
Constructors
EbnfAlternation(EbnfProduction[])
Initializes a new instance of the EbnfAlternation
class.
public EbnfAlternation(params EbnfProduction[] productions)
Parameter | Type | Description |
---|---|---|
productions | EbnfProduction[] | The EbnfProduction objects within the expression. |
Properties
Productions
Gets the list of EbnfProduction objects within the alternation.
public IList<EbnfProduction> Productions { get; }
Property Value
- IList<EbnfProduction>:
The list of EbnfProduction objects within the alternation.
Methods
ToString()
Returns a String
that represents the current Object
.
Inherited Members
- EbnfQuantifiableTerm.Optional()
- EbnfQuantifiableTerm.OnComplete(ParserCallback)
- EbnfQuantifiableTerm.OnError(ParserErrorCallback)
- EbnfQuantifiableTerm.OnErrorContinue()
- EbnfQuantifiableTerm.OnErrorIgnore()
- EbnfQuantifiableTerm.OnErrorNoReport()
- EbnfQuantifiableTerm.OnInitialize(ParserCallback)
- EbnfQuantifiableTerm.OneOrMore()
- EbnfQuantifiableTerm.OnSuccess(ParserCallback)
- EbnfQuantifiableTerm.Range(Int32, Nullable<Int32>)
- EbnfQuantifiableTerm.SetLabel(String)
- EbnfQuantifiableTerm.ZeroOrMore()
- EbnfTerm.ToEbnfString()
- EbnfTerm.ToProduction()
- EbnfTerm.CompleteCallback
- EbnfTerm.ErrorCallback
- EbnfTerm.InitializeCallback
- EbnfTerm.IsCompiled
- EbnfTerm.Label
- EbnfTerm.MatchCondition
- EbnfTerm.SuccessCallback
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()