]> git.lizzy.rs Git - nothing.git/blobdiff - src/script/parser.h
TODO(#330)
[nothing.git] / src / script / parser.h
index d7a8ace1788fc67ddab7e5c4b89dacf4d9c1589a..21247dae5757a019dac8a1f8e0c4a192557ef6fe 100644 (file)
@@ -6,12 +6,6 @@
 #include "script/expr.h"
 #include "script/tokenizer.h"
 
-struct ParseError
-{
-
-    size_t error_cursor;
-};
-
 struct ParseResult
 {
     bool is_error;
@@ -27,7 +21,8 @@ struct ParseResult parse_success(struct Expr expr,
 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,