public CorrectSpellingsRescueMatch(TryToRescueMatch fallback, SpellingBeeWordComparer comparer, GrammarParser parser, double weight)
 {
     this.fallback = fallback;
     this.comparer = comparer;
     this.parser = parser;
     this.weight = weight;
 }
 public CorrectSpellingsRescueMatch(TryToRescueMatch fallback, SpellingBeeWordComparer comparer, GrammarParser parser, double weight)
 {
     this.fallback = fallback;
     this.comparer = comparer;
     this.parser   = parser;
     this.weight   = weight;
 }
Example #3
0
        public MainClass()
        {
            verbose = 0;
            initialized = false;
            serialmode = false;

            tryToRescueMatch = new TryToRescueMatch();
        }
        public MainClass()
        {
            verbose     = 0;
            initialized = false;
            serialmode  = false;

            tryToRescueMatch = new TryToRescueMatch();
        }
Example #5
0
        bool FailToTryToRescue(IArena arena, double salience, string reason, IContinuation skip, params object[] args)
        {
            TryToRescueMatch      tryToRescueMatch      = (TryToRescueMatch)args[0];
            IParsedPhrase         input                 = (IParsedPhrase)args[1];
            PatternTemplateSource patternTemplateSource = (PatternTemplateSource)args[2];
            IContinuation         succ = (IContinuation)args[3];
            IFailure fail     = (IFailure)args[4];
            Coderack coderack = (Coderack)args[5];

            return(tryToRescueMatch.CallRescue(coderack, input, patternTemplateSource, reason, skip, succ, fail));
        }
Example #6
0
        public SerialTemplateMatcher(IMessageReceiver receiver, IContinuation succ, Coderack coderack,
                                     TryToRescueMatch tryToRescueMatch, IParsedPhrase input,
                                     List <PatternTemplateSource> dicta, double weight)
        {
            this.receiver         = receiver;
            this.succ             = succ;
            this.coderack         = coderack;
            this.tryToRescueMatch = tryToRescueMatch;

            this.inputs   = new List <IParsedPhrase>(input.Branches);
            inputIndex    = -1;
            this.allDicta = dicta;
            this.weight   = weight;
        }