Минус рефлект

This commit is contained in:
Aer Iz 2024-02-11 09:39:22 +02:00
parent 015ec69720
commit 6627ea2127

View File

@ -21,8 +21,7 @@ typedef enum
MINC = '+', MINC = '+',
MDEC = '-', MDEC = '-',
PPIPE = '|', PPIPE = '|'
PREFLECT = '^'
} OP; } OP;
static void prefix_operator(Stack *stack, char op) static void prefix_operator(Stack *stack, char op)
@ -41,20 +40,6 @@ static void prefix_operator(Stack *stack, char op)
DATA = stack_pop(stack); DATA = stack_pop(stack);
break; break;
case PREFLECT:
NAME++;
if (NAME[0] != '#' && NAME[0] != '$')
printf("%s %i", NAME, DATA);
else if (!strcmp(ARG, "\n"))
printf("%s", NAME);
else
printf("%s %s", NAME, ARG);
break;
} }
} }