Recursive lambdas with new system

This commit is contained in:
Krzosa Karol
2022-05-27 15:35:15 +02:00
parent 79aa52e726
commit d6401ff05d
4 changed files with 10 additions and 20 deletions

View File

@@ -5,10 +5,10 @@
#include "new_parse.cpp"
#include "new_type.cpp"
#include "new_resolve.cpp"
#include "cgenerate.cpp"
#include "ccodegen.cpp"
/// @todo
/// [ ] - Typespecs should probably be expressions so stuff like would be possible :: *[32]int
/// [x] - Typespecs should probably be expressions so stuff like would be possible :: *[32]int
int main(){
@@ -24,8 +24,8 @@ int main(){
lex_test();
// String result = compile_file("globals.kl"_s);
String result = compile_file("lambdas.kl"_s);
// String result = compile_file("order_independent_globals.kl"_s);
// String result = compile_file("lambdas.kl"_s);
String result = compile_file("order_independent_globals.kl"_s);
printf("%s", result.str);
// compile_file("lambdas.kl"_s);