In This Article

EbnfTerminal Class

Represents a terminal symbol within an EBNF production.

public sealed class EbnfTerminal : EbnfSymbol, IGrammarNode
Inheritance:
Object EbnfTerm EbnfQuantifiableTerm EbnfSymbol Object

Constructors

EbnfTerminal(Terminal)

Initializes a new instance of the EbnfTerminal class.

public EbnfTerminal(Terminal terminal)
Parameter Type Description
terminal Terminal

The Terminal that is referenced by this term.

Properties

Terminal

Gets or sets the Terminal that is referenced by this term.

public Terminal Terminal { get; set; }

Property Value

Terminal:

The Terminal that is referenced by this term.

Remarks

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

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