Ejemplo n.º 1
0
        // TODO: we can remove I think.  All detected now with cycles check.
        public static void LeftRecursion(DecisionProbe probe,
                                         int alt,
                                         ICollection targetRules,
                                         ICollection callSiteStates)
        {
            getErrorState().warnings++;
            Message msg = new LeftRecursionMessage(probe, alt, targetRules, callSiteStates);

            getErrorState().warningMsgIDs.add(msg.msgID);
            getErrorListener().Warning(msg);
        }
Ejemplo n.º 2
0
 // TODO: we can remove I think.  All detected now with cycles check.
 public static void LeftRecursion(DecisionProbe probe,
                                  int alt,
                                  ICollection targetRules,
                                  ICollection callSiteStates)
 {
     getErrorState().warnings++;
     Message msg = new LeftRecursionMessage(probe, alt, targetRules, callSiteStates);
     getErrorState().warningMsgIDs.add(msg.msgID);
     getErrorListener().Warning(msg);
 }