erikedin / Behavior.jl

Tool for Behavior Driven Development in Julia
Other
25 stars 3 forks source link

Parser overhaul #91

Closed erikedin closed 3 years ago

erikedin commented 3 years ago

The parser did not turn out as well as I'd hoped. In order to add Rules, and become less brittle, I think it needs an overhaul. I made an experimental prototype in a separate repository, and I believe that parser combinators will work well for this.

I'll use this issue to track progress, aiming to parse a full Feature, with limited but correct functionality.

Once this is done, I'll create additional issues for fixing the missing pieces.

Basic parser combinators unrelated to Gherkin specifics

Gherkin specific things

mkschulze commented 3 years ago

that sounds like a lot of work

erikedin commented 3 years ago

Note as much as you'd think. Most of the tasks in the list above are actually trivial. It's a lot less work than the current parser, for sure.

erikedin commented 3 years ago

The new experimental parser can now parse a very simple Feature file with Rules, Scenarios, and Given steps. I'll create additional issues for the missing features until the new parser is complete.