Skip to content

Commit

Permalink
try suggestions code
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarorichard committed Aug 6, 2023
1 parent 1fa038a commit 7b6df9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,15 +339,15 @@ void enum_declaration() {
i = 0;
while (token != '}') {
if (token != Id) {
printf("%d: bad enum identifier %d\n", line, token);
printf("%d: identificador de enumeração inválido %d\n", line, token);
exit(-1);
}
next();
if (token == Assign) {
// like {a=10}
next();
if (token != Num) {
printf("%d: bad enum initializer\n", line);
printf("%d: inicializador de enumeração ruim\n", line);
exit(-1);
}
i = token_val;
Expand Down

0 comments on commit 7b6df9f

Please sign in to comment.