16 lines
300 B
C#
16 lines
300 B
C#
using static Generator;
|
|
|
|
public static class AstGenerator {
|
|
public static void Main() {
|
|
Generate(
|
|
"AstGenerated.cs",
|
|
"",
|
|
"namespace Ast {",
|
|
"}",
|
|
"Ast.",
|
|
Types(
|
|
Variant("Expr",
|
|
Case("int", "Int"),
|
|
Case("string", "String"))));
|
|
}
|
|
} |