In This Article

EbnfConcatenation Class

Represents a concatenation expression within an EBNF production.

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

Constructors

EbnfConcatenation(params EbnfTerm[])

Initializes a new instance of the EbnfConcatenation class.

public EbnfConcatenation(params EbnfTerm[] terms)
Parameter Type Description
terms EbnfTerm[]

The EbnfTerm objects within the expression.

Properties

Label

Gets or sets the label to apply to this term that may be used when rewriting.

public override string Label { get; set; }

Property Value

string:

The label to apply to this term that may be used when rewriting.

Remarks

Once the grammar has been compiled, the setter of this property will throw an exception if called.

Terms

Gets the list of EbnfTerm objects within the expression.

public IList<EbnfTerm> Terms { get; }

Property Value

IList<EbnfTerm>:

The list of EbnfTerm objects within the expression.

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