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

            return terminals[name];
        }