예제 #1
0
        public static void UnreachableAlts(DecisionProbe probe,
                                           IEnumerable <int> alts)
        {
            GetErrorState().errors++;
            Message msg = new GrammarUnreachableAltsMessage(probe, alts);

            GetErrorState().errorMsgIDs.Add(msg.msgID);
            GetErrorListener().Error(msg);
        }
예제 #2
0
 public static void UnreachableAlts( DecisionProbe probe,
                                    IEnumerable<int> alts )
 {
     GetErrorState().errors++;
     Message msg = new GrammarUnreachableAltsMessage( probe, alts );
     GetErrorState().errorMsgIDs.Add( msg.msgID );
     GetErrorListener().Error( msg );
 }