Module registry

Module registry 

Source
Expand description

Tag-driven parser dispatch.

get_parser is the single source of truth for which parser handles which dialect. Adding a new parser is exactly two file touches:

  1. Drop a new module under super::parsers.
  2. Add one match arm here.

No other crate looks at format:* tags — they call get_parser and use the returned trait object. This keeps the dialect surface area tightly contained and prevents drift between callers.

Functions§

get_parser
Pick a parser for a model based on its tags list.