public ShiftTableDefinition TryAdd(CoreTransition transition, IDictionary<Core, int> coreToIndex) =>
     transition.Symbol is Terminal ? this.Add(ShiftCommand.Of(transition, coreToIndex)) : this;
Esempio n. 2
0
 public ParsingTable Add(CoreTransition transition) =>
 new ParsingTable(this, this.Shift.TryAdd(transition, this.CoreToIndex), this.Goto.TryAdd(transition, this.CoreToIndex), this.Reduce);