Initializacia
This commit is contained in:
parent
6c0c3cfee5
commit
0a45896795
@ -55,12 +55,12 @@ void check_brackets(const char *line) {
|
||||
}
|
||||
} else if (is_closing(ch)) {
|
||||
if (stack_top == -1) {
|
||||
printf("Unexpected closing bracket %c in %d\n", ch, i);
|
||||
printf("Unexpected closing bracket %c in %d \n", ch, i);
|
||||
return;
|
||||
} else if (stack[stack_top].bracket == matching_bracket(ch)) {
|
||||
stack_top--;
|
||||
} else {
|
||||
printf("Crossed bracket %c in %d, expected %c\n ", ch, i,
|
||||
printf("Crossed bracket %c in %d, expected %c \n", ch, i,
|
||||
expected_closing(stack[stack_top].bracket));
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user