Create REPL module
This commit is contained in:
16
lib/include/repl.h
Normal file
16
lib/include/repl.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef REPL_H
|
||||
#define REPL_H
|
||||
|
||||
#include "am.h"
|
||||
|
||||
#define REPL_IO_BUFFER_SIZE 256U
|
||||
|
||||
typedef struct {
|
||||
am_t am;
|
||||
char io_buffer[REPL_IO_BUFFER_SIZE];
|
||||
} repl_t;
|
||||
|
||||
void repl_init(repl_t *repl);
|
||||
int repl_run(repl_t *repl);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user