Esempio n. 1
0
 /// <summary>
 /// Creates a graph with non-word nodes for the start and ending nodes.
 /// </summary>
 internal GrammarGraph(JSGFGrammar parent)
 {
     _parent   = parent;
     StartNode = _parent.CreateGrammarNode(false);
     EndNode   = _parent.CreateGrammarNode(false);
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a grammar graph with the given nodes.
 /// </summary>
 /// <param name="startNode">The staring node of the graph.</param>
 /// <param name="endNode">The ending node of the graph.</param>
 /// <param name="parent">The parent.</param>
 internal GrammarGraph(GrammarNode startNode, GrammarNode endNode, JSGFGrammar parent)
 {
     _parent   = parent;
     StartNode = startNode;
     EndNode   = endNode;
 }