SQLite

Check-in [86e30fc284]
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
Timelines: family | ancestors | descendants | both | lemon-improvements
Files: files | file ages | folders
SHA3-256: 86e30fc284c740b55f75884b67988fe837b28878f586f6ec8850ecf80164e700
User & Date: drh 2017-12-26 18:32:06.041
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: 93792bc58a 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: 86e30fc284 user: drh tags: lemon-improvements)
18:14
Merge bug fixes from trunk. (check-in: d76e12066f user: drh tags: lemon-improvements)
Changes
Side-by-Side Diff Ignore Whitespace Patch
Changes to tool/lempar.c.
472
473
474
475
476
477
478
479
480
481





482
483
484
485
486
487
488
472
473
474
475
476
477
478



479
480
481
482
483
484
485
486
487
488
489
490







-
-
-
+
+
+
+
+







*/
#if defined(YYCOVERAGE)
int ParseCoverage(FILE *out){
  int i, j;
  int nMissed = 0;
  for(i=0; i<YYNSTATE; i++){
    for(j=0; j<YYNTOKEN; j++){
      if( yycoverage[i][j] ) continue;
      nMissed++;
      if( out ) fprintf(out,"State %d lookahead %s\n", i, yyTokenName[j]);
      if( !yycoverage[i][j] ) nMissed++;
      if( out ){
        fprintf(out,"State %d lookahead %s %s\n",
           i, yyTokenName[j], yycoverage[i][j] ? "ok" : "missed");
      }
    }
  }
  return nMissed;
}
#endif

/*