mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
24 lines
692 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|