Camden Dixie O'Brien acb4cd38d7 Extract line reading logic to reader and remove REPL tests
Reading a line into the buffer was the only logic complex enough to be
worth testing really, and exposing the necessary parts of it to test
it effectively was a pain.  Makes more sense to move read_line out and
throw away most of the tests.
2024-10-24 22:09:33 +01:00

12 lines
226 B
C

#ifndef READER_H
#define READER_H
#include "memory_pool.h"
int read_line(int (*get_byte)(void), char *buffer, int buffer_size);
const expression_t *
read_expression(memory_pool_t *pool, const char *input, int len);
#endif