mirror of
https://github.com/ProgramSnail/lang_modes_check.git
synced 2025-12-06 00:58:42 +00:00
typecheck (without modes), unique mode
This commit is contained in:
parent
7055b353a9
commit
9448e2ac19
12 changed files with 602 additions and 279 deletions
|
|
@ -1,11 +1,14 @@
|
|||
#include "parsing_tree.hpp"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace nodes;
|
||||
|
||||
int main() {
|
||||
const auto program =
|
||||
Expr{Let{Arg{"f", {}},
|
||||
Expr(Let(Arg("f"),
|
||||
lambda1("x", operator_call("+", make_expr<Var>("x"),
|
||||
make_expr<Var>("x"))),
|
||||
make_expr<Var>("f")}};
|
||||
make_expr<Var>("f")));
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue