示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeneratorStateItem"/> class.
 /// </summary>
 /// <param name="ruleItem">The <see cref="GeneratorRuleItem"/> representing the LR(0) item identified by this <see cref="GeneratorStateItem"/>.</param>
 /// <param name="lookaheads">A collection containing lookahead terminals associated with this <see cref="GeneratorStateItem"/>.</param>
 public GeneratorStateItem(GeneratorRuleItem ruleItem, IEnumerable <TerminalType> lookaheads)
 {
     m_ruleItem = ruleItem;
     m_lookaheads.UnionWith(lookaheads);
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeneratorStateItem"/> class.
 /// </summary>
 /// <param name="ruleItem">The <see cref="GeneratorRuleItem"/> representing the LR(0) item identified by this <see cref="GeneratorStateItem"/>.</param>
 public GeneratorStateItem(GeneratorRuleItem ruleItem)
 {
     m_ruleItem = ruleItem;
 }