コード例 #1
0
 public static void CompileClassLibrary(SrgsDocument srgsGrammar, string outputPath, string[] referencedAssemblies, string keyFile)
 {
     Helpers.ThrowIfNull(srgsGrammar, "srgsGrammar");
     Helpers.ThrowIfEmptyOrNull(outputPath, "outputPath");
     SrgsCompiler.SrgsCompiler.CompileStream(srgsGrammar, outputPath, null, false, referencedAssemblies, keyFile);
 }
コード例 #2
0
 public static void Compile(SrgsDocument srgsGrammar, Stream outputStream)
 {
     Helpers.ThrowIfNull(srgsGrammar, "srgsGrammar");
     Helpers.ThrowIfNull(outputStream, "outputStream");
     SrgsCompiler.SrgsCompiler.CompileStream(srgsGrammar, null, outputStream, true, null, null);
 }