In This Article

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.

public override string ToString()

Returns

String:

A String that represents the current Object.

Inherited Members