Initial commit

This commit is contained in:
2025-09-03 03:20:58 -07:00
commit 1e16b4d34e
20 changed files with 455 additions and 0 deletions

24
include/lisp/array.h Normal file
View File

@ -0,0 +1,24 @@
#ifndef INCLUDED_ARRAY_H
#define INCLUDED_ARRAY_H
#include "lisp/object.h"
#include "lisp/util.h"
LISP_BEGIN_DECLS
DECLARE_CLASS(Array);
struct Array {
Object base;
size_t length;
void *value;
};
struct ArrayClass {
Class base;
Object *(*length)(Object *self);
Object *(*elt)(Object *self, Object *index);
Object *(*aset)(Object *self, Object *index, Object *value);
};
LISP_END_DECLS
#endif