print funtion added, not tested

This commit is contained in:
2026-03-25 06:59:52 -06:00
parent 17be815ed0
commit f11b6f8c12
4 changed files with 50 additions and 0 deletions

View File

@@ -248,3 +248,16 @@ Operator char_to_operator(int c) {
return -1;
}
}
char operator_to_char(Operator op) {
switch (op) {
case OP_ADD:
return '+';
case OP_SUB:
return '-';
case OP_MUL:
return '*';
case OP_DIV:
return '/';
}
}