Expand description
Semantic validation for authored grammar IR values.
Structs§
- Grammar
Diagnostic - One grammar validation finding.
- Rule
Span - Where a grammar diagnostic applies.
Enums§
- Diagnostic
Kind - Classes of authoring defects detected by
validate. - Severity
- Diagnostic severity.
Constants§
- GRAMMAR_
DIAGNOSTIC_ KINDS - The name of every diagnostic kind, in the order
validatereports kinds that share a rule, as the JavaScriptGRAMMAR_DIAGNOSTIC_KINDS.
Functions§
- display_
grammar_ expression - Renders a grammar expression the way diagnostics quote it, as the
JavaScript
displayGrammarExpressiondoes. - validate
- Runs every grammar validation checker and returns deterministic diagnostics.