On Wed, Sep 2, 2009 at 6:40 PM, Elizabeth Keogh <[email protected]> wrote:

> On Wed, Sep 2, 2009 at 12:49 AM, aslak hellesoy<[email protected]>
> wrote:
> > Hi!
> >
> > I have rounded up some fine folks who are working on a new, fast parser
> > (based on Ragel) for Gherkin - the language that Cucumber supports.
> > Since Gherkin is a superset of what JBehave supports, this might be
> > something you would like to use - for a couple of reasons:
>
> Hi Aslak,
>
> Do you have any documentation for Gherkin around at all?


There is no formal specification except the treetop grammar inside cucumber.
There is a wiki page on Gherkin in the Cucumber wiki (written by someone I
don't know) and it's terrible. I won't even link to it ;-)

I hope to produce a BNF as part of the Gherkin project.


> Maybe some
> examples of scenarios that differ from JBehave's? (I know you've got
> Background, which makes me quite jealous already!)
>
>
There are Scenario Outlines and multiline step definitions too, which are
even more useful than Background IMO:

* http://wiki.github.com/aslakhellesoy/cucumber/scenario-outlines
* http://wiki.github.com/aslakhellesoy/cucumber/multiline-step-arguments


> Also, is there any way to get Gherkin to parse a simple G/W/T scenario
> without all the "Scenario: <Whatever>" and narrative that comes before
> it? JBehave does this and it makes knocking up new Scenarios very
> quick; for that reason, and for backwards compatibility, I'd be keen
> to keep it.
>
>
You don't need a feature/narrative header, but you do need a Scenario
header. This is the minimal valid feature:

Scenario: a
  Given b


> Even if we don't use your parser, I'd like for us to be working off
> the same language base (hence documentation for Gherkin's supported
> features would be good!). Cucumber's been an inspiration for JBehave
> 2; if we can keep them aligned it will be good for both teams.
>
>
I agree. It would make life better for both tool users and developers like
us!

Aslak


> Cheers,
> Liz.
>
>
> --
> Elizabeth Keogh
> [email protected]
> http://lizkeogh.com
> http://jbehave.org
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to