diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-05 15:23:34 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-05 15:23:34 +0200 |
commit | 4377cb485b0d03d189979766bf64676b4db9dad6 (patch) | |
tree | b526b29f31413261ea48548d11248a6eae656df6 | |
parent | 8f267b847edefe8b8751d85b9a5abe6d53d3628c (diff) |
Use yytoken_kind_t instead of int
-rw-r--r-- | src/parser.y | 4 |
1 files changed, 2 insertions, 2 deletions
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)), |