Reader
This commit is contained in:
+23
@@ -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
|
||||
Reference in New Issue
Block a user