371 |
return STRING; |
return STRING; |
372 |
} |
} |
373 |
|
|
374 |
|
\0 complain_at (*loc, _("invalid null character")); |
375 |
.|\n STRING_GROW; |
.|\n STRING_GROW; |
376 |
<<EOF>> unexpected_eof (token_start, "\""); BEGIN INITIAL; |
<<EOF>> unexpected_eof (token_start, "\""); BEGIN INITIAL; |
377 |
} |
} |
398 |
return ID; |
return ID; |
399 |
} |
} |
400 |
|
|
401 |
|
\0 complain_at (*loc, _("invalid null character")); |
402 |
.|\n STRING_GROW; |
.|\n STRING_GROW; |
403 |
<<EOF>> unexpected_eof (token_start, "'"); BEGIN INITIAL; |
<<EOF>> unexpected_eof (token_start, "'"); BEGIN INITIAL; |
404 |
} |
} |
414 |
unsigned long c = strtoul (yytext + 1, 0, 8); |
unsigned long c = strtoul (yytext + 1, 0, 8); |
415 |
if (UCHAR_MAX < c) |
if (UCHAR_MAX < c) |
416 |
complain_at (*loc, _("invalid escape sequence: %s"), quote (yytext)); |
complain_at (*loc, _("invalid escape sequence: %s"), quote (yytext)); |
417 |
|
else if (! c) |
418 |
|
complain_at (*loc, _("invalid null character: %s"), quote (yytext)); |
419 |
else |
else |
420 |
obstack_1grow (&obstack_for_string, c); |
obstack_1grow (&obstack_for_string, c); |
421 |
} |
} |
426 |
c = strtoul (yytext + 2, 0, 16); |
c = strtoul (yytext + 2, 0, 16); |
427 |
if (UCHAR_MAX < c || get_errno ()) |
if (UCHAR_MAX < c || get_errno ()) |
428 |
complain_at (*loc, _("invalid escape sequence: %s"), quote (yytext)); |
complain_at (*loc, _("invalid escape sequence: %s"), quote (yytext)); |
429 |
|
else if (! c) |
430 |
|
complain_at (*loc, _("invalid null character: %s"), quote (yytext)); |
431 |
else |
else |
432 |
obstack_1grow (&obstack_for_string, c); |
obstack_1grow (&obstack_for_string, c); |
433 |
} |
} |
447 |
int c = convert_ucn_to_byte (yytext); |
int c = convert_ucn_to_byte (yytext); |
448 |
if (c < 0) |
if (c < 0) |
449 |
complain_at (*loc, _("invalid escape sequence: %s"), quote (yytext)); |
complain_at (*loc, _("invalid escape sequence: %s"), quote (yytext)); |
450 |
|
else if (! c) |
451 |
|
complain_at (*loc, _("invalid null character: %s"), quote (yytext)); |
452 |
else |
else |
453 |
obstack_1grow (&obstack_for_string, c); |
obstack_1grow (&obstack_for_string, c); |
454 |
} |
} |