Пример #1
0
        public static void Main(string[] args)
        {
            if(args.Length != 1)
            {
                Console.WriteLine("usage: ReniExe <filename>");
                return;
            }

            var p = new CompilerParameters
            {
                OutStream = new ConsoleStream()
            };
            var c = Compiler.FromFile(args[0], p);
            try
            {
                c.Execute();
            }
            catch(Exception exception)
            {
                Console.WriteLine(exception.Message);
            }
        }
Пример #2
0
 internal static CompilerParameters CreateTraceAll()
 {
     var result = new CompilerParameters();
     result.TraceOptions.UseOnModeErrorFocus();
     return result;
 }