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 currentObject
.
Inherited Members
- EbnfQuantifiableTerm.Optional()
- EbnfQuantifiableTerm.OnComplete(ParserCallback)
- EbnfQuantifiableTerm.OnError(ParserErrorCallback)
- EbnfQuantifiableTerm.OnErrorContinue()
- EbnfQuantifiableTerm.OnErrorIgnore()
- EbnfQuantifiableTerm.OnErrorNoReport()
- EbnfQuantifiableTerm.OnInitialize(ParserCallback)
- EbnfQuantifiableTerm.OneOrMore()
- EbnfQuantifiableTerm.OnSuccess(ParserCallback)
- EbnfQuantifiableTerm.Range(Int32, Nullable<Int32>)
- EbnfQuantifiableTerm.SetLabel(String)
- EbnfQuantifiableTerm.ZeroOrMore()
- EbnfTerm.ToEbnfString()
- EbnfTerm.ToProduction()
- EbnfTerm.CompleteCallback
- EbnfTerm.ErrorCallback
- EbnfTerm.InitializeCallback
- EbnfTerm.IsCompiled
- EbnfTerm.Label
- EbnfTerm.MatchCondition
- EbnfTerm.SuccessCallback
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()