diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-08-17 12:09:23 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-08-17 12:09:23 -0400 |
commit | bddc723d0eb67b32bf50e2eabe4999dc96e741f3 (patch) | |
tree | 1b6a832d9f136896c1e8b324538531918974ff8f | |
parent | 190274a66622d65cd30726a8daf3edb02dfe009e (diff) |
Fix debug_print calls in tokenizer
Was printing RELOP for ADDOP&MULOPs
-rw-r--r-- | pc.l | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; } |