Skip to main content

Module feature

Module feature 

Source
Expand description

Feature front end (TECH-SPEC §4.2, §4.4, §7): gherkin parse, tag accumulation, Background prepending, Rule pass-through, Scenario Outline expansion, and data-table capture.

Span discipline (TECH-SPEC §9): the gherkin crate’s Span is 0-based byte offsets (end-exclusive) into the normalized source (a trailing newline is appended when missing) — this module normalizes identically, attaches the normalized text to every diagnostic, and clamps. LineCol is char-counted and is never used in byte math; parse-error positions are converted by walking the line’s char_indices.

Structs§

FeatureFile
A parsed, fully-expanded feature file: outlines are concrete scenarios, Background steps are prepended, Rule scenarios are inlined.
ScenarioDef
One concrete (post-expansion) scenario.
StepDefn
One authored step, ready for binding.

Functions§

parse
Parse one feature file into concrete scenarios. All diagnostics carry the normalized source and byte spans.