public void Test()
        {
            var compiler  = new DocumentCompiler();
            var compiled  = compiler.Compile("SimpleFormulas.xlsx");
            var evaluator = new SyntaxEvaluator(compiled, new CustomFunctionProvider());

            var b2 = evaluator.GetCell <int>(new Cell("a2"));
        }
Esempio n. 2
0
 public TocBasedPagesCompiler(DocumentCompiler documentCompiler, ParserOptions options) : base(documentCompiler, options)
 {
 }
 public DocumentationDirectoryCompiler(DocumentCompiler documentCompiler, ParserOptions options)
 {
     _documentCompiler = documentCompiler;
     Options           = options;
 }
Esempio n. 4
0
 /// <summary>
 /// 将文档结构编译成一个方法,文档结构可以由此方法复原
 /// </summary>
 /// <param name="document">要编译的文档</param>
 /// <returns>复原文档的方法</returns>
 public static Func <IHtmlDomProvider, IHtmlDocument> Compile(this IHtmlDocument document)
 {
     return(DocumentCompiler.Compile(document));
 }
Esempio n. 5
0
 public IndexPagesCompiler(DocumentCompiler documentCompiler, ParserOptions options) : base(documentCompiler, options)
 {
 }