/ 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 Unified Diffs 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
*/
#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]);


    }
  }
  return nMissed;
}
#endif

/*







|
|
|
>
>







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] ) nMissed++;
      if( out ){
        fprintf(out,"State %d lookahead %s %s\n",
           i, yyTokenName[j], yycoverage[i][j] ? "ok" : "missed");
      }
    }
  }
  return nMissed;
}
#endif

/*