示例#1
0
        public virtual void  fireMismatchNot(char v, char c, int guessing)
        {
            MatchEventHandler eventDelegate = (MatchEventHandler)((Parser)source).Events[Parser.MisMatchNotEventKey];

            if (eventDelegate != null)
            {
                matchEvent.setValues(MatchEventArgs.CHAR, v, c, null, guessing, true, true);
                eventDelegate(source, matchEvent);
            }
            checkController();
        }
示例#2
0
        public virtual void  fireMismatchNot(int i, int n, string text, int guessing)
        {
            MatchEventHandler eventDelegate = (MatchEventHandler)((Parser)source).Events[Parser.MisMatchNotEventKey];

            if (eventDelegate != null)
            {
                matchEvent.setValues(MatchEventArgs.TOKEN, i, n, text, guessing, true, true);
                eventDelegate(source, matchEvent);
            }
            checkController();
        }
示例#3
0
        public virtual void  fireMismatch(string s, string text, int guessing)
        {
            MatchEventHandler eventDelegate = (MatchEventHandler)((Parser)source).Events[Parser.MisMatchEventKey];

            if (eventDelegate != null)
            {
                matchEvent.setValues(MatchEventArgs.STRING, 0, text, s, guessing, false, true);
                eventDelegate(source, matchEvent);
            }
            checkController();
        }
示例#4
0
        public virtual void  fireMismatch(char c, string target, int guessing)
        {
            MatchEventHandler eventDelegate = (MatchEventHandler)((Parser)source).Events[Parser.MisMatchEventKey];

            if (eventDelegate != null)
            {
                matchEvent.setValues(MatchEventArgs.CHAR_RANGE, c, target, null, guessing, false, true);
                eventDelegate(source, matchEvent);
            }
            checkController();
        }
示例#5
0
        public virtual void  fireMatch(int c, BitSet b, string text, int guessing)
        {
            MatchEventHandler eventDelegate = (MatchEventHandler)((Parser)source).Events[Parser.MatchEventKey];

            if (eventDelegate != null)
            {
                matchEvent.setValues(MatchEventArgs.BITSET, c, b, text, guessing, false, true);
                eventDelegate(source, matchEvent);
            }
            checkController();
        }
示例#6
0
        public virtual void  fireMismatch(char c, BitSet b, int guessing)
        {
            MatchEventHandler eventDelegate = (MatchEventHandler)((CharScanner)source).Events[Parser.MisMatchEventKey];

            if (eventDelegate != null)
            {
                matchEvent.setValues(MatchEventArgs.CHAR_BITSET, c, b, null, guessing, false, true);
                eventDelegate(source, matchEvent);
            }
            checkController();
        }
示例#7
0
        public virtual void  fireMatch(int n, string text, int guessing)
        {
            MatchEventHandler eventDelegate = (MatchEventHandler)((CharScanner)source).Events[Parser.MatchEventKey];

            if (eventDelegate != null)
            {
                matchEvent.setValues(MatchEventArgs.TOKEN, n, n, text, guessing, false, true);
                eventDelegate(source, matchEvent);
            }
            checkController();
        }