In This Article

EbnfAlternation Class

Represents an alternation expression within an EBNF production.

public sealed class EbnfAlternation : EbnfQuantifiableTerm
Inheritance:
object EbnfTerm EbnfQuantifiableTerm object

Constructors

EbnfAlternation(params EbnfProduction[])

Initializes an instance of the class.

public EbnfAlternation(params EbnfProduction[] productions)
Parameter Type Description
productions EbnfProduction[]

The EbnfProduction objects within the expression.

Properties

Productions

The list of EbnfProduction objects within the alternation.

public IList<EbnfProduction> Productions { get; }

Property Value

IList<EbnfProduction>

Methods

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods