6 #include "ebisp/expr.h"
7 #include "ebisp/tokenizer.h"
15 const char *error_message;
19 struct ParseResult parse_success(struct Expr expr,
21 struct ParseResult parse_failure(const char *error,
25 struct ParseResult read_expr_from_string(Gc *gc, const char *str);
26 struct ParseResult read_all_exprs_from_string(Gc *gc, const char *str);
28 struct ParseResult read_expr_from_file(Gc *gc, const char *filename);
29 struct ParseResult read_all_exprs_from_file(Gc *gc, const char *filename);
31 void print_parse_error(FILE *stream,
33 struct ParseResult result);
34 // TODO(#668): there is no way to print parse error after parsing a file