#include "script/expr.h"
#include "script/tokenizer.h"
-struct ParseError
-{
-
- size_t error_cursor;
-};
-
struct ParseResult
{
bool is_error;
struct ParseResult parse_failure(const char *error,
const char *end);
-struct ParseResult parse_expr(struct Token token);
+struct ParseResult read_expr_from_string(Gc *gc, const char *str);
+struct ParseResult read_expr_from_file(Gc *gc, const char *filename);
void print_parse_error(FILE *stream,
const char *str,