This commit is contained in:
2026-01-16 03:20:38 -08:00
parent e0d8693840
commit 94d5749d31
19 changed files with 1358 additions and 3 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef INCLUDED_READ_H
#define INCLUDED_READ_H
#include "base.h"
#include <stddef.h>
typedef struct {
const char *buffer;
size_t len;
size_t off;
size_t line;
size_t col;
size_t backquote_level;
} ReadStream;
void read_stream_init(ReadStream *stream, const char *buffer, size_t length);
// NULL on eof
LispVal *read(ReadStream *stream);
#endif