day1 progress: typecheck template, mode check for unique

This commit is contained in:
programsnail 2024-04-21 07:33:14 +03:00
commit 1f8071c89b
11 changed files with 525 additions and 0 deletions

11
tests/tests.cpp Normal file
View file

@ -0,0 +1,11 @@
#include "parsing_tree.hpp"
using namespace nodes;
int main() {
const auto program =
Expr{Let{Arg{"f", {}},
lambda1("x", operator_call("+", make_expr<Var>("x"),
make_expr<Var>("x"))),
make_expr<Var>("f")}};
}