Exemplo n.º 1
0
        static void Main(string[] args)
        {
            try
            {
                var options = Options.Parse(args);
                if (options == null)
                {
                    return;
                }

                var prefix = options.outputPrefix;

                var compiler = new Spark.Compiler.Compiler
                {
                    OutputPrefix = prefix,
                };
                foreach (var fileName in options.fileNames)
                {
                    compiler.AddInput(fileName);
                }

                int result = compiler.Compile();
            }
            catch (StackOverflowException e)
            {
                System.Console.Error.WriteLine("Exception: {0}", e);
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            try
            {
                var options = Options.Parse(args);
                if (options == null)
                    return;

                var prefix = options.outputPrefix;

                var compiler = new Spark.Compiler.Compiler
                {
                    OutputPrefix = prefix,
                };
                foreach( var fileName in options.fileNames )
                    compiler.AddInput(fileName);

                int result = compiler.Compile();
            }
            catch (StackOverflowException e)
            {
                System.Console.Error.WriteLine("Exception: {0}", e);
            }
        }