2022-02-12 02:29:25 +01:00
|
|
|
|
using System;
|
|
|
|
|
using meowlang.parser;
|
2022-02-13 02:41:16 +01:00
|
|
|
|
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);
|
2022-02-13 02:41:16 +01:00
|
|
|
|
Console.Write(model.AutoToString());
|
|
|
|
|
if (model == null) return;
|
|
|
|
|
TypeChecker.CheckAndInferTypes(model);
|
2022-02-12 02:29:25 +01:00
|
|
|
|
}
|
|
|
|
|
}
|