예제 #1
0
        public void Program_menu(RuleParser ruleParser, ESProvider exsys, FactParser fparser)
        {
            string[] choices = new string[] { "Gimme a house", "Exit" };
            bool     quit    = false;
            string   choice  = "";

            while (!quit)
            {
                Print_menu(choices);
                choice = Console.ReadLine();
                if (choice == "q" || choice == "Q")
                {
                    quit = true;
                }
            }
        }
예제 #2
0
 public ESProvider(FactParser factParser, RuleParser ruleParser)
 {
     this.factParser = factParser;
     this.ruleParser = ruleParser;
 }