/ Check-in [86e30fc2]
Login

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

Overview
Comment:Change the lemon-parser coverage report format to report all state/lookahead pairs and indicate on each whether it is hit or missed.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | lemon-improvements
Files: files | file ages | folders
SHA3-256: 86e30fc284c740b55f75884b67988fe837b28878f586f6ec8850ecf80164e700
User & Date: drh 2017-12-26 18:32:06
Context
2017-12-27
15:21
In LEMON, fix an off-by-one error that can make the lookahead table one byte too smal. check-in: 93792bc5 user: drh tags: lemon-improvements
2017-12-26
18:32
Change the lemon-parser coverage report format to report all state/lookahead pairs and indicate on each whether it is hit or missed. check-in: 86e30fc2 user: drh tags: lemon-improvements
18:14
Merge bug fixes from trunk. check-in: d76e1206 user: drh tags: lemon-improvements
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/lempar.c.

   472    472   */
   473    473   #if defined(YYCOVERAGE)
   474    474   int ParseCoverage(FILE *out){
   475    475     int i, j;
   476    476     int nMissed = 0;
   477    477     for(i=0; i<YYNSTATE; i++){
   478    478       for(j=0; j<YYNTOKEN; j++){
   479         -      if( yycoverage[i][j] ) continue;
   480         -      nMissed++;
   481         -      if( out ) fprintf(out,"State %d lookahead %s\n", i, yyTokenName[j]);
          479  +      if( !yycoverage[i][j] ) nMissed++;
          480  +      if( out ){
          481  +        fprintf(out,"State %d lookahead %s %s\n",
          482  +           i, yyTokenName[j], yycoverage[i][j] ? "ok" : "missed");
          483  +      }
   482    484       }
   483    485     }
   484    486     return nMissed;
   485    487   }
   486    488   #endif
   487    489   
   488    490   /*