Skip to content

Migrate parser to cucumber/common? #245

@ciaranmcnulty

Description

@ciaranmcnulty

I'm going to do a spike at porting the cucumber parser over to PHP within the cucumber repository. This would contain a complete AST of value objects we could use.

For BC it should be possible to write a thin translation layer to map that to the existing Gherkin objects in this repo via a Loader, but a future version of Behat could rely on its AST directly, or even at some point rely on its 'pickles'.

Pros:

  • Help from Cucumber team in maintenance, as internal structure would closely mirror the Java etc implementations
  • Faster support for Cucumber language features
  • Would use cucumber versioning so users could pin specific translations (see BC in keywords #193)

Cons:

  • Relies on Cucumber team caring about PHP
  • Introduces a layer of complexity in mapping

Any thoughts/feedback?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions