Table of Contents

Interface IGrammarSymbol

Namespace
Farkle.Builder
Assembly
Farkle.dll

Represents a symbol (terminal or nonterminal) in a grammar to be built that can be composed to form more complex symbols.

public interface IGrammarSymbol : IGrammarBuilder
Extension Methods

Remarks

This interface inherits from IGrammarBuilder and also represents a grmmar to be built with this symbol as its start symbol. It cannot be implemented by user code.

This interface is the closest replacement of Farkle 6's DesigntimeFarkle interface. The functionality of that interface has been split to this interface and IGrammarBuilder, to codify in the type system which configuration operations apply to individual symbols and which apply to the whole grammar.

Properties

Name

The symbol's name.

string Name { get; }

Property Value

string

Remarks

This value is used only for diagnostic and documentation purposes and does not affect the grammar's behavior when parsing. A grammar may contain multiple symbols with the same name.

See Also