Exemplo n.º 1
0
        /// <summary>
        /// Compiles an Srgs document to a file
        /// </summary>
        public static void CompileClassLibrary(SrgsDocument srgsGrammar, string outputPath, string[] referencedAssemblies, string keyFile)
        {
            Helpers.ThrowIfNull(srgsGrammar, nameof(srgsGrammar));
            Helpers.ThrowIfEmptyOrNull(outputPath, nameof(outputPath));

            SrgsCompiler.CompileStream(srgsGrammar, outputPath, null, false, referencedAssemblies, keyFile);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Compiles an Srgs document to a file
        /// </summary>
        public static void Compile(SrgsDocument srgsGrammar, Stream outputStream)
        {
            Helpers.ThrowIfNull(srgsGrammar, nameof(srgsGrammar));
            Helpers.ThrowIfNull(outputStream, nameof(outputStream));

            SrgsCompiler.CompileStream(srgsGrammar, null, outputStream, true, null, null);
        }