antlr / grammars-v4

Grammars written for ANTLR v4; expectation that the grammars are free of actions.
MIT License
10.15k stars 3.7k forks source link

Grammar for gherkin and galen is missing #772

Open Chris2011 opened 7 years ago

Chris2011 commented 7 years ago

It would be great, to have grammar files for the galen framework language and the gherkin language for cucumber.

Regards

Chris

teverett commented 7 years ago

Do you have a link to these languages, and perhaps BNF specifications?

Chris2011 commented 7 years ago

Here is the reference for using gherkin in cucumber: https://cucumber.io/docs/reference and here is the link to BNF: https://github.com/cucumber/gherkin2/wiki/BNF

For galen I only have the link to the languauge, no BNF :/ sry: http://galenframework.com/

Maybe the spec guide can help(?): http://galenframework.com/docs/reference-galen-spec-language-guide/

Regards

Chris

Chris2011 commented 7 years ago

FYI, I created a ticket at the galen repo, to ask for BNF or ANTLR grammar files: https://github.com/galenframework/galen/issues/505

Chris2011 commented 7 years ago

Hope this can help: https://github.com/hypery2k/galen_ide/blob/master/com.galenframework.specs.parent/com.galenframework.specs/src/com/galenframework/Specs.xtext

Marti2203 commented 3 years ago

Hi, What exactly has to be done to solve this issue? Making an ANTLR grammar for gherkin and galen?

hgedik commented 3 years ago

Hi, Can someone share the g4 file for Gherkin, please? Note: https://github.com/cosenmarco/yabdd/blob/master/yabdd/src/main/antlr4/Gherkin.g4 some things are missing in this. for example docstr(")