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 an instance of the class.

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

The EbnfTerm objects within the expression.

Properties

Label

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

public override string? Label { get; set; }

Property Value

string

Remarks

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

Terms

The list of EbnfTerm objects within the expression.

public IList<EbnfTerm> Terms { get; }

Property Value

IList<EbnfTerm>

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