private void Synthesize(IOSet io)
        {
            List <ExcelFunction> functions = new FunctionScraper().Scrape();

            for (int max_depth = 1; max_depth < 5; ++max_depth)
            {
                foreach (string s in Recurse(functions, io, max_depth))
                {
                    string fullFormula = "=" + s;
                    if (CheckAllCases(io, fullFormula))
                    {
                        string formula = string.Format(s, "<input>");
                        Console.WriteLine(formula);
                    }
                }
            }

            //TODO: Ranking
        }
Esempio n. 2
0
 public FunctionSpace()
 {
     Functions = new FunctionScraper().Scrape();
     Generator = new GeneralGenerator();
     Results   = new Dictionary <object, string>();
 }