Files
jak-project/goalc/compiler/Lambda.h
T
2022-06-22 23:37:46 -04:00

23 lines
446 B
C++

#pragma once
#ifndef JAK_LAMBDA_H
#define JAK_LAMBDA_H
#include "common/goos/Object.h"
#include "common/type_system/TypeSpec.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