"Jong-young Park" <[EMAIL PROTECTED]> wrote: > Hi all. > > I want to use "Lemon" parser generator for my own project because of > multi-threading. > But I find the strange bug. > > I made sample calculator program for testing. > See the part of grammar file : > > expr(X) ::= expr(A) PLUS NUM(B) . > { > X = A+B; > printf("plus-result : %d\n",X); > } > > After execute lemon, that changed like this: > > #line 19 "cal.y" > { > yygotominor.yy4 = yymsp[-2].minor.yy4+yymsp[0].minor.yy0; > printf("plus-result : 0d\n",yygotominor.yy4); > } > > '%' changed to '0'! >
Your work-around is to say %%d instead of %d. -- D. Richard Hipp <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------