8880d63d6ad5b99c2083f224a434c5ac5f635509 — Simon Ser 4 months ago 714eea8 master
Rename expect_ast_int to expect_term
1 files changed, 2 insertions(+), 2 deletions(-)

M calc.c
M calc.c => calc.c +2 -2
@@ 69,7 69,7 @@
 
 struct ast_node *parse_parens(struct parser *parser);
 
-struct ast_node *expect_ast_int(struct parser *parser) {
+struct ast_node *expect_term(struct parser *parser) {
 	struct ast_node *n = parse_parens(parser);
 	if (n != NULL) {
 		return n;


@@ 87,7 87,7 @@
 }
 
 struct ast_node *expect_power(struct parser *parser) {
-	struct ast_node *n = expect_ast_int(parser);
+	struct ast_node *n = expect_term(parser);
 	if (n == NULL) {
 		return NULL;
 	}