Repository navigation
Commit badef4c
feat(scanner): grammar seam
Adapts the existing scanner to the grammar surface with minimal
change. Wires Options.OnDiagnostic into the per-decl Builders,
exposes the ScanCtx FileSet so grammar parsers produce
position-stable diagnostics, and surfaces the scanner-level
annotation classifiers (ExtractAnnotation, ModelOverride,
ResponseOverride, ParametersOverride) under internal/parsers/.
Note: a handful of regular expressions remain in the scanner —
annotation discovery, model / response / parameters override
matching, route / operation path-annotation tokenisation. Removing
these is deferred to a forthcoming scanner-focused change.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>1 parent 2b2cc09 commit badef4c
25 files changed
Lines changed: 514 additions & 2181 deletions
File tree
- internal
- parsers
- scanner
- classify
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments