Gherkin

Fast Gherkin lexer and parser based on Ragel. Gherkin is two things:

Generating and building the code

You’ll need MRI (any version) if you want to build for MRI. To build the Java implementation you’ll need JRuby. You’ll also need Ragel installed and on your PATH. Finally you’ll need the jeweler gem. (Jeweler will tell you what other gems you need when you run rake)

MRI

rake clean compile

Java

rake clean jar

Running RSpec and Cucumber tests

rake clean spec cucumber

If the RL_LANG environment variable is set, only the parsers for the languages specified there will be built. E.g. in Bash, export RL_LANG=“en,fr,no”. This can be quite helpful when modifying the Ragel grammar.

Release process

** java/pom.xml ** ikvm/Gherkin/Gherkin.csproj

Configuring Rake-Compiler for cross compilation

In order to build Windows binaries (so we can release Windows gems from OS X/Linux) we need to set up rake-compiler.

github.com/luislavena/rake-compiler/

I didn’t want to install macports (I’m on homebrew) and I couldn’t figure out how to build MinGW myself. I got prebuilt binaries: crossgcc.rts-software.org/doku.php - just add the bin folder to your PATH

Note on Patches/Pull Requests

Copyright

Copyright © 2009 Mike Sassak, Gregory Hnatiuk, Aslak Hellesøy. See LICENSE for details.

[Validate]

Generated with the Darkfish Rdoc Generator 2.