X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser_proc.c;h=295c60f1686cdcfd4f325ff896504eb8c52fe099;hp=a3b6119b12d2b6b6a63ae43eab741d2df4406b26;hb=1b6db76e3005344b33ab45b00e7e61386a33932a;hpb=6509a2053456d0e63b6f383b757289d3016ed1a5 diff --git a/src/parser_proc.c b/src/parser_proc.c index a3b6119..295c60f 100644 --- a/src/parser_proc.c +++ b/src/parser_proc.c @@ -643,8 +643,8 @@ static const YYCODETYPE yyFallback[] = { 0, /* CALLABLE => nothing */ 0, /* PRE_ASSERT => nothing */ 0, /* POST_ASSERT => nothing */ - 0, /* ERROR => nothing */ - 0, /* WARNING => nothing */ + 14, /* ERROR => NAME */ + 14, /* WARNING => NAME */ 14, /* TEMP => NAME */ 14, /* FREE => NAME */ 14, /* SET => NAME */ @@ -2438,7 +2438,7 @@ static void yy_reduce( } else { char digest[17]; psi_token_hash(yymsp[-1].minor.yy0, digest); - yylhsminor.yy0 = psi_token_translit(psi_token_append(yymsp[-1].minor.yy0, 1, digest), " ", "@"); + yylhsminor.yy0 = psi_token_append("@", yymsp[-1].minor.yy0, 1, digest); } } #line 2445 "src/parser_proc.c" @@ -2956,7 +2956,7 @@ static void yy_reduce( #line 712 "src/parser_proc.y" { if (yymsp[0].minor.yy0) { - yylhsminor.yy0 = psi_token_cat(2, yymsp[-1].minor.yy0, yymsp[0].minor.yy0); + yylhsminor.yy0 = psi_token_cat(" ", 2, yymsp[-1].minor.yy0, yymsp[0].minor.yy0); free(yymsp[-1].minor.yy0); free(yymsp[0].minor.yy0); } else { @@ -2970,7 +2970,7 @@ static void yy_reduce( case 105: /* decl_type ::= SIGNED decl_scalar_type */ yytestcase(yyruleno==105); #line 760 "src/parser_proc.y" { - struct psi_token *T = psi_token_cat(2, yymsp[-1].minor.yy0, yymsp[0].minor.yy0); + struct psi_token *T = psi_token_cat(" ", 2, yymsp[-1].minor.yy0, yymsp[0].minor.yy0); yylhsminor.yy172 = psi_decl_type_init(T->type, T->text); yylhsminor.yy172->token = T; free(yymsp[-1].minor.yy0);