jak-project/goalc/compiler/Lambda.h
water111 d56540f8c0
Add lambda and static objects (#30)
* add some more tests for let

* support static strings

* add function calling

* add prints for windows debgu

* one test only

* try swapping r14 and r15 in windows

* swap back

* disable defun for now

* fix massive bug

* fix formatting
2020-09-12 13:11:42 -04:00

20 lines
390 B
C++

#ifndef JAK_LAMBDA_H
#define JAK_LAMBDA_H
#include "goalc/goos/Object.h"
// note - we cannot easily reuse the GOOS argument system because GOAL's is slightly different.
// there's no rest or keyword support.
struct GoalArg {
std::string name;
TypeSpec type;
};
struct Lambda {
std::string debug_name;
std::vector<GoalArg> params;
goos::Object body;
};
#endif // JAK_LAMBDA_H