d6bdd08002
the typechecker project can collect all the top level types from a file, which is pretty cool I think (except for pointers, those aren't implemented yet...)
17 lines
381 B
C#
17 lines
381 B
C#
using System;
|
|
using meowlang.parser;
|
|
using meowlang.typechecker;
|
|
|
|
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);
|
|
}
|
|
} |