Initial commit

This commit is contained in:
2026-04-02 17:42:04 -07:00
commit aa4564fc55
11 changed files with 1120 additions and 0 deletions

30
term.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef INCLUDED_TERM_H
#define INCLUDED_TERM_H
#include <stddef.h>
typedef enum {
TYPE_VARIABLE,
TYPE_LAMBDA,
TYPE_APPLY,
} LambdaTermType;
typedef struct _LambdaTerm LambdaTerm;
struct _LambdaTerm {
LambdaTermType type;
union {
struct {
char name;
} v;
struct {
char argument;
LambdaTerm *body;
} l;
struct {
char function;
LambdaTerm *argument;
};
};
};
#endif