Fix token destructors in lemon generated parsers. Does not effect SQLite.

Ticket #3299. (CVS 5563)

FossilOrigin-Name: 4887e8fc4af9e2963b3eff3187dee5b0d6297eb5
This commit is contained in:
drh
2008-08-13 20:04:29 +00:00
parent e63d999189
commit 639efd0451
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -3315,7 +3315,7 @@ PRIVATE void translate_code(struct lemon *lemp, struct rule *rp){
lemp->errorcnt++;
}else if( rp->rhsalias[i]==0 ){
if( has_destructor(rp->rhs[i],lemp) ){
append_str(" yy_destructor(%d,&yymsp[%d].minor);\n", 0,
append_str(" yy_destructor(yypParser,%d,&yymsp[%d].minor);\n", 0,
rp->rhs[i]->index,i-rp->nrhs+1);
}else{
/* No destructor defined for this term */