Esempio n. 1
0
        private static Assembly Build(string rookCode)
        {
            var result = new RookCompiler(CompilerParameters.ForBasicEvaluation()).Build(rookCode);

            if (result.Errors.Any())
                Fail.WithErrors(result.Errors);

            return result.CompiledAssembly;
        }
Esempio n. 2
0
        private static CompilerResult Build(string path, out string translation)
        {
            var compiler = new RookCompiler(CompilerParameters.ForBasicEvaluation());

            return compiler.Build(File.ReadAllText(path), out translation);
        }