COMP: update lemon to 2019-12-19 version

This commit is contained in:
Mark Olesen
2020-01-10 14:35:04 +01:00
parent 8fdb9b2f70
commit 9b67ffaf74
4 changed files with 152 additions and 57 deletions

View File

@ -347,8 +347,8 @@ void ParseInit(void *yypRawParser ParseCTX_PDECL){
#if YYSTACKDEPTH>0
yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1];
#endif
%namespace_end
}
%namespace_end
#ifndef Parse_ENGINEALWAYSONSTACK
/*
@ -739,12 +739,15 @@ static YYACTIONTYPE yy_reduce(
if( yyTraceFILE && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){
yysize = yyRuleInfoNRhs[yyruleno];
if( yysize ){
fprintf(yyTraceFILE, "%sReduce %d [%s], go to state %d.\n",
fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
yyTracePrompt,
yyruleno, yyRuleName[yyruleno], yymsp[yysize].stateno);
yyruleno, yyRuleName[yyruleno],
yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action",
yymsp[yysize].stateno);
}else{
fprintf(yyTraceFILE, "%sReduce %d [%s].\n",
yyTracePrompt, yyruleno, yyRuleName[yyruleno]);
fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
yyTracePrompt, yyruleno, yyRuleName[yyruleno],
yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action");
}
}
#endif /* NDEBUG */
@ -1085,7 +1088,7 @@ int ParseFallback(int iToken){
return yyFallback[iToken];
#else
(void)iToken;
#endif
return 0;
#endif
}
%namespace_end