meowlang/compiler/Compiler.cs

17 lines
381 B
C#
Raw Normal View History

2022-02-12 02:29:25 +01:00
using System;
using meowlang.parser;
using meowlang.typechecker;
2022-02-12 02:29:25 +01:00
namespace meowlang.compiler;
static class Compiler
{
private static void Main(string[] args)
{
var path = "example.mew";
var model = Parser.Parse(path);
Console.Write(model.AutoToString());
if (model == null) return;
TypeChecker.CheckAndInferTypes(model);
2022-02-12 02:29:25 +01:00
}
}