From 4377cb485b0d03d189979766bf64676b4db9dad6 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 5 Sep 2024 15:23:34 +0200 Subject: Use yytoken_kind_t instead of int --- src/parser.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/parser.y b/src/parser.y index 8492821..072fef7 100644 --- a/src/parser.y +++ b/src/parser.y @@ -10,7 +10,7 @@ #include "wrapper.h" static ast_t mkunop(int, ast_t); -static ast_t mkbinop(int, ast_t, ast_t); +static ast_t mkbinop(yytoken_kind_t, ast_t, ast_t); static asts_t pushast(asts_t, ast_t); static void yyerror(const char *); @@ -106,7 +106,7 @@ mkunop(int op, ast_t rhs) } ast_t -mkbinop(int op, ast_t lhs, ast_t rhs) +mkbinop(yytoken_kind_t op, ast_t lhs, ast_t rhs) { ast_t a = { .eqn = xmalloc(sizeof(eqn_t)), -- cgit v1.2.3