I'm finally starting to get somewhere on Gherkin for Javascript
(https://github.com/aslakhellesoy/gherkin/issues#issue/38). I have
managed to get Ragel to generate the Gherkin lexer in Javascript. It's
all on my javascript branch. The next step is to get all of the
existing solid specs and features to validate its correctness. This
can be done with therubyracer - a Ruby<->V8 Javascript bridge.
The short README_JAVASCRIPT.md file should be enough to get you up and
running and try out this little example:
https://github.com/aslakhellesoy/gherkin/blob/javascript/js/example/print.js
(runs on node.js)
In theory, this should do more or less the same:
https://github.com/aslakhellesoy/gherkin/blob/javascript/js/example/print.rb
However, it doesn't (the scan method gets called, but somehow we never
get into the code where events are fired - calls to this.emit).
Anyone want to help? It would be cool to:
a) Have a "try cuke" in your browser (with some http://ace.ajax.org/ love)
b) Get started on cucumber for Node.js
Aslak
Aslak