Cosmos/source2/Compiler/Cosmos.Compiler.XSharp.XSC/Program.cs
kudzu_cp 3d0ee77433
2012-06-14 22:45:15 +00:00

24 lines
692 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Cosmos.Compiler.XSharp.XSC {
class Program {
static void Main(string[] aArgs) {
string xSrc = aArgs[1];
string xDest = Path.ChangeExtension(xSrc, ".cs");
string xNamespace = aArgs[2];
using (var xInput = new StreamReader(xSrc)) {
using (var xOutput = new StreamWriter(xDest)) {
var xGenerator = new Generator();
xGenerator.Name = Path.GetFileNameWithoutExtension(xSrc);
xGenerator.Namespace = xNamespace;
xGenerator.Execute(xInput, xOutput);
}
}
}
}
}