comments added
parent
ca95ce2a3f
commit
2841810eba
|
@ -38,13 +38,13 @@ void yyerror(const char *s) {
|
|||
|
||||
"//" {
|
||||
int c;
|
||||
while ((c = input()) != '\n' && c != 0); // Используем input() вместо yyinput()
|
||||
while ((c = input()) != '\n' && c != 0);
|
||||
if (c == '\n') line_number++;
|
||||
}
|
||||
|
||||
"/*" {
|
||||
int c, prev = 0;
|
||||
while ((c = input()) != 0) { // Используем input() вместо yyinput()
|
||||
while ((c = input()) != 0) {
|
||||
if (c == '\n') line_number++;
|
||||
if (prev == '*' && c == '/') break;
|
||||
prev = c;
|
||||
|
|
Loading…
Reference in New Issue