Trying to build a forth runtime in C
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/**
|
|
|
|
* Forth main entry-point
|
|
|
|
*
|
|
|
|
* Created on 2021/11/13.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FORTH_H
|
|
|
|
#define FORTH_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "fh_config.h"
|
|
|
|
#include "fh_error.h"
|
|
|
|
|
|
|
|
struct fh_thread_s;
|
|
|
|
|
|
|
|
enum fh_error fh_init(struct fh_thread_s *fh);
|
|
|
|
enum fh_error fh_process_line(struct fh_thread_s *fh, const char *linebuf, size_t len);
|
|
|
|
|
|
|
|
#endif //FORTH_H
|