コード例 #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);
        }
コード例 #2
0
ファイル: ErrorManager.cs プロジェクト: mahanteshck/antlrcs
 // 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);
 }