Expand description
Recipe parsing and conversion of cooklang reports into Diagnostics.
cooklang parses leniently, so a recipe can parse successfully and still
have something to say about itself. The CLI used to log those warnings and
drop them; here they come back to the caller in the Outcome.
Statics§
- PARSER
- The shared parser. Matches CookCLI’s configuration exactly: no extensions, default converter for unit support.
Functions§
- parse_
recipe - Parse recipe text, scale it, and collect diagnostics.
- parse_
recipe_ at - As
parse_recipe, but attributing diagnostics to a specific file path. - render_
report - Render a parse report the way the CLI prints it, with source line context.