2025-06-28 16:47:23 +09:00
|
|
|
#ifndef INCLUDED_READ_H
|
|
|
|
|
#define INCLUDED_READ_H
|
|
|
|
|
|
|
|
|
|
#include "lisp.h"
|
|
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
|
SEVERITY_WARN,
|
|
|
|
|
SEVERITY_ERROR,
|
|
|
|
|
} ReadErrorSeverity;
|
|
|
|
|
|
|
|
|
|
size_t read_from_buffer(const char *text, size_t length, LispVal **out);
|
|
|
|
|
|
2025-07-03 01:36:25 +09:00
|
|
|
DECLARE_FUNCTION(read, (LispVal * source));
|
|
|
|
|
|
2025-06-28 16:47:23 +09:00
|
|
|
#endif
|