jak-project/goalc/compiler/Lambda.h
water111 abcd444a3b
Add deftype (#48)
* initial deftype implementation

* fix library setup for windows

* implement deftype

* fix memory bug

* fix formatting
2020-09-17 21:47:52 -04:00

22 lines
405 B
C++

#pragma once
#ifndef JAK_LAMBDA_H
#define JAK_LAMBDA_H
#include "common/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