Browse CVS Repository
Contents of /netruby/netruby/NRc.cs
Parent Directory
| Revision Log
| Revision Graph
Revision 1.1.1.1 -
( show annotations)
( download)
(vendor branch)
Mon Apr 8 13:28:17 2002 UTC
(22 years ago)
by arton
Branch: MAIN, vendor
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
initial version 0.8
| 1 |
/* |
| 2 |
Copyright(C) 2001-2002 arton |
| 3 |
|
| 4 |
Permission is granted for use, copying, modification, distribution, |
| 5 |
and distribution of modified versions of this work as long as the |
| 6 |
above copyright notice is included. |
| 7 |
*/ |
| 8 |
using System; |
| 9 |
using System.Threading; |
| 10 |
using System.Reflection; |
| 11 |
using System.IO; |
| 12 |
using System.CodeDom.Compiler; |
| 13 |
using System.ComponentModel; |
| 14 |
|
| 15 |
[assembly: AssemblyTitle("NRc")] |
| 16 |
[assembly: AssemblyVersion("0.8.*")] |
| 17 |
[assembly: AssemblyCopyright("NRc - Copyright (C) 2002 arton")] |
| 18 |
|
| 19 |
namespace arton.NETRuby |
| 20 |
{ |
| 21 |
class NRCompiler |
| 22 |
{ |
| 23 |
private NetRuby ruby; |
| 24 |
|
| 25 |
public static void Main(string[] args) |
| 26 |
{ |
| 27 |
if (args.Length <= 0) |
| 28 |
{ |
| 29 |
Console.WriteLine("NRc filename"); |
| 30 |
return; |
| 31 |
} |
| 32 |
long s1 = DateTime.Now.Ticks; |
| 33 |
NetRuby rb = new NetRuby(); |
| 34 |
long s2 = DateTime.Now.Ticks; |
| 35 |
long s3 = 0; |
| 36 |
if (rb.Options(args)) |
| 37 |
{ |
| 38 |
s3 = DateTime.Now.Ticks; |
| 39 |
rb.Compile(); |
| 40 |
} |
| 41 |
long s4 = DateTime.Now.Ticks; |
| 42 |
System.Console.WriteLine(String.Format("new={0},Process={1},Compile={2}",(s2 - s1)/10000, (s3 - s2)/10000, (s4 - s3)/10000)); |
| 43 |
rb.Exit(0); |
| 44 |
} |
| 45 |
} |
| 46 |
} |
| |