In This Article

EbnfNonTerminal Class

Represents a non-terminal symbol within an EBNF production.

public sealed class EbnfNonTerminal : EbnfSymbol, IGrammarNode
Inheritance:
System.Object EbnfTerm EbnfQuantifiableTerm EbnfSymbol Object

Constructors

EbnfNonTerminal(NonTerminal)

Initializes a new instance of the EbnfNonTerminal class.

public EbnfNonTerminal(NonTerminal nonTerminal)
Parameter Type Description
nonTerminal NonTerminal

The NonTerminal that is referenced by this term.

Properties

NonTerminal

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

public NonTerminal NonTerminal { get; set; }

Property Value

NonTerminal:

The NonTerminal 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

System.String:

A String that represents the current Object.

Inherited Members