/ Check-in [b6d7d42b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix an error message in the Lemon parser generator.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b6d7d42b7426622a26b67809cd1f21285fea120aa1897377b9946840463b41f1
User & Date: drh 2019-04-30 14:26:31
Context
2019-04-30
15:36
Fix a problem allowing a Table object to be deleted from within a call to the xDestroy method of the associated virtual table, causing a use-after-free error. check-in: 1dbbb010 user: dan tags: trunk
14:26
Fix an error message in the Lemon parser generator. check-in: b6d7d42b user: drh tags: trunk
11:54
Small performance increase and size reduction in the implementation of the LIKE and GLOB operators. check-in: f97626f9 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/lemon.c.

  3844   3844       if( rp->rhsalias[i] ){
  3845   3845         if( i>0 ){
  3846   3846           int j;
  3847   3847           if( rp->lhsalias && strcmp(rp->lhsalias,rp->rhsalias[i])==0 ){
  3848   3848             ErrorMsg(lemp->filename,rp->ruleline,
  3849   3849               "%s(%s) has the same label as the LHS but is not the left-most "
  3850   3850               "symbol on the RHS.",
  3851         -            rp->rhs[i]->name, rp->rhsalias);
         3851  +            rp->rhs[i]->name, rp->rhsalias[i]);
  3852   3852             lemp->errorcnt++;
  3853   3853           }
  3854   3854           for(j=0; j<i; j++){
  3855   3855             if( rp->rhsalias[j] && strcmp(rp->rhsalias[j],rp->rhsalias[i])==0 ){
  3856   3856               ErrorMsg(lemp->filename,rp->ruleline,
  3857   3857                 "Label %s used for multiple symbols on the RHS of a rule.",
  3858   3858                 rp->rhsalias[i]);