remove debug info

This commit is contained in:
Yaossg 2025-04-11 17:52:16 +08:00
parent 72f36de60c
commit e104489ee4

10
boot.c
View file

@ -587,16 +587,6 @@ void next_token() {
fprintf(stderr, "unexpected character: %c(%d)\n", ch, ch); fprintf(stderr, "unexpected character: %c(%d)\n", ch, ch);
exit(1); exit(1);
} }
// debug info
if (0) {
fprintf(stderr, "token: %d\n", token_type);
if (token_type == TOKEN_ID) {
char* name = id_table + id_lut[token_data];
fprintf(stderr, " id: %s\n", name);
} else if (token_type == TOKEN_NUMBER) {
fprintf(stderr, " number: %d\n", token_data);
}
}
} }
void expect_token(int expected_type) { void expect_token(int expected_type) {