C# Class Microsoft.Automata.Grammars.Production

Show file Open project: AutomataDotNet/Automata Class Usage Examples

Public Properties

Property Type Description
Lhs Nonterminal
Rhs Microsoft.Automata.Grammars.GrammarSymbol[]

Public Methods

Method Description
GetExprinals ( ) : IEnumerable
GetVariables ( ) : IEnumerable
Production ( Nonterminal lhs ) : System
Production ( Nonterminal lhs, GrammarSymbol rhsButLast, GrammarSymbol last ) : System
ToString ( ) : string

Private Methods

Method Description
AreVariablesContainedIn ( HashSet vars ) : bool
RhsContainsSymbol ( GrammarSymbol symbol ) : bool

Method Details

GetExprinals() public method

public GetExprinals ( ) : IEnumerable
return IEnumerable

GetVariables() public method

public GetVariables ( ) : IEnumerable
return IEnumerable

Production() public method

public Production ( Nonterminal lhs ) : System
lhs Nonterminal
return System

Production() public method

public Production ( Nonterminal lhs, GrammarSymbol rhsButLast, GrammarSymbol last ) : System
lhs Nonterminal
rhsButLast GrammarSymbol
last GrammarSymbol
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Lhs public property

public Nonterminal,Microsoft.Automata.Grammars Lhs
return Nonterminal

Rhs public property

public GrammarSymbol[],Microsoft.Automata.Grammars Rhs
return Microsoft.Automata.Grammars.GrammarSymbol[]