Минус рефлект
This commit is contained in:
parent
015ec69720
commit
6627ea2127
@ -21,8 +21,7 @@ typedef enum
|
||||
MINC = '+',
|
||||
MDEC = '-',
|
||||
|
||||
PPIPE = '|',
|
||||
PREFLECT = '^'
|
||||
PPIPE = '|'
|
||||
} 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);
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user