]> git.lizzy.rs Git - nothing.git/blobdiff - src/script/parser.h
TODO(#391)
[nothing.git] / src / script / parser.h
index 5f04fc56246e3a9a74708a97889b7ac833370ea2..a1f61a85bbf6696c85036f2a6254005154aa4be3 100644 (file)
@@ -21,8 +21,9 @@ struct ParseResult parse_success(struct Expr expr,
 struct ParseResult parse_failure(const char *error,
                                  const char *end);
 
-struct ParseResult read_expr_from_string(const char *str);
-struct ParseResult read_expr_from_stream(FILE *stream);
+// TODO(#361): parser does not parse negative numbers
+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,