Class FZagalaSpecGherkinParser#

Inheritance Relationships#

Base Type#

Class Documentation#

class FZagalaSpecGherkinParser : public IZagalaSpecBDDParser#

Parses Gherkin (.feature) files as used by Cucumber and SpecFlow.

Both formats share the same grammar; SpecFlow-specific attributes live in C# step-binding code and are invisible at the .feature level.

Supported constructs:

  • Feature / Background / Scenario / Scenario Outline (with Examples)

  • Given / When / Then / And / But / * step keywords

  • @tags on Feature, Scenario, and Examples blocks

  • Docstrings (triple-quote delimiters)

  • Data tables (pipe-separated)

  • Rule keyword (flattened — scenarios collected under the enclosing Feature)

  • # language: directive (non-English triggers a parse warning)

Public Functions

virtual FZagalaSpecParseResult ParseFile(const FString &FilePath) const override#

Parse a BDD file from disk and return an import result.

Parameters:

FilePath – Path of the file to parse.

Returns:

The parsed features, errors, and warnings.

virtual FZagalaSpecParseResult ParseContent(const FString &Content, const FString &SourceName = TEXT("<inline>")) const override#

Parse BDD content from an in-memory string.

Parameters:
  • Content – BDD text to parse.

  • SourceName – Identifies the source in warnings/errors (e.g. file path or <inline>).

Returns:

The parsed features, errors, and warnings.