This commit is contained in:
2024-02-13 18:10:08 +02:00
parent 5e15a3b3e0
commit 7a781b0849
2 changed files with 23 additions and 5 deletions
+5 -5
View File
@@ -27,11 +27,11 @@ typedef enum
static void prefix_operator(Stack *stack, char op)
{
// if (NAME[0] != '@' && (NAME[1] == '\0' || NAME[1] == '\n'))
// {
// printf("%c\n", op);
// kms(stack, "Invalid usage of prefix operators");
// }
if (NAME[0] != '@' && (NAME[1] == '\0' || NAME[1] == '\n'))
{
printf("%c\n", op);
kms(stack, "Invalid usage of prefix operators");
}
switch (op)
{