From bddc723d0eb67b32bf50e2eabe4999dc96e741f3 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Sat, 17 Aug 2019 12:09:23 -0400 Subject: Fix debug_print calls in tokenizer Was printing RELOP for ADDOP&MULOPs --- pc.l | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pc.l b/pc.l index 509b6cf..ec5b947 100644 --- a/pc.l +++ b/pc.l @@ -174,37 +174,37 @@ id [A-Za-z][A-Za-z0-9_]* "+" { yylval.opval = ADD; - debug_print(RELOP, &yylval); + debug_print(ADDOP, &yylval); return ADDOP; } "-" { yylval.opval = SUB; - debug_print(RELOP, &yylval); + debug_print(ADDOP, &yylval); return ADDOP; } "or" { yylval.opval = OR; - debug_print(RELOP, &yylval); + debug_print(ADDOP, &yylval); return ADDOP; } "*" { yylval.opval = MUL; - debug_print(RELOP, &yylval); + debug_print(MULOP, &yylval); return MULOP; } "/" { yylval.opval = DIV; - debug_print(RELOP, &yylval); + debug_print(MULOP, &yylval); return MULOP; } "and" { yylval.opval = AND; - debug_print(RELOP, &yylval); + debug_print(MULOP, &yylval); return MULOP; } -- cgit v1.1