12 lines
318 B
C#
12 lines
318 B
C#
// Run with: sh ./T4/Generators.sh
|
|
|
|
using System.Collections.Generic;
|
|
|
|
public static class AstGenerator {
|
|
public static void Main() {
|
|
Generator.Generate("AstGenerated.cs", "namespace Ast {", "}", "Ast.", "Expr", new Dictionary<string, string> {
|
|
{ "Int", "int" },
|
|
{ "String", "string" },
|
|
});
|
|
}
|
|
} |