mirror of
https://github.com/ProgramSnail/lang_modes_check.git
synced 2025-12-06 00:58:42 +00:00
day1 progress: typecheck template, mode check for unique
This commit is contained in:
commit
1f8071c89b
11 changed files with 525 additions and 0 deletions
11
tests/tests.cpp
Normal file
11
tests/tests.cpp
Normal 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")}};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue