public Conflict(Terminal sy, string s1, string s2) { symbol = sy; str1 = s1; str2 = s2; }
public ReduceReduceConflict(Terminal sy, string s1, string s2, int prod) : base(sy, s1, s2) { chosen = prod; }
public ShiftReduceConflict(Terminal sy, string s1, string s2, State from, State to) : base(sy, s1, s2) { fromState = from; toState = to; }
public Terminal LookupTerminal(GrammarToken token, string name) { if (!terminals.ContainsKey(name)) terminals[name] = new Terminal(token == GrammarToken.Symbol, name); return terminals[name]; }