grammar-coverage

command
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command grammar-coverage measures which productions of the OMG Xtext grammars our test inputs exercise, on input-presence evidence: for every rule, fragment, enum and terminal of KerML.xtext, KerMLExpressions.xtext and SysML.xtext it searches the corpora we already parse for the literals the production requires, and buckets it as evidence, no-evidence or indistinguishable.

The number it reports is an over-approximation. A literal in a corpus file means an input could have driven that production; it does not prove our parser took that path, nor that it handled it correctly. It is not a compliance measure.

It is advisory: nothing in the build or the test suite depends on it, and it only reads the corpora. Provision the grammars with scripts/download-pilot-grammars.sh, then run `go run ./cmd/grammar-coverage`. -baseline refreshes the committed docs/project/grammar-coverage-baseline.json, which carries the counts and the gaps rather than every row. See docs/project/grammar-coverage.md.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL