-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
comments should not change parser state #334
base: main
Are you sure you want to change the base?
comments should not change parser state #334
Conversation
The parser is generated. To change the parser you'll have to change the grammar. Lines 35 to 38 in 00fcc43
To regenerate the parsers you can follow these instructions: https://github.com/cucumber/gherkin/blob/main/CONTRIBUTING.md#generating-parsers |
I have changed the grammar to allow any mixture of empty lines, comments and other-lines as the description. Extracting only the other-lines from the Description-AST-Node (as before) should yield the description-text without the comments and empty lines. Only difference is now that a collection of ony empty-lines and comments would yield an empty description text instead of a non-existing Description node. |
Changed the grammar in a way that is more consistent with the former test cases (treating empty lines inside description blocks as '#Other' lines). |
@jacob-wieland-gematik, installing |
bfbf091
to
2a34df3
Compare
@kieran-ryan I have rebased on latest main and updated a tokens file. Can you approve the checks again? |
Added dialect.c which was missing for some reason. Please approve checks @kieran-ryan |
I am not able to generate Parser.php locally, so not sure what to do here @kieran-ryan |
@jacob-wieland-gematik are you able to generate the php parser using the docker container? https://github.com/cucumber/gherkin/blob/main/CONTRIBUTING.md#generating-parsers |
No, there seems to be a problem doing that under windows (probably CRLF vs LF related) that hinders this generation. When change the CRLF of the generated classes.php to LF and then do the generation steps manually, I was able to generate Parser.php |
π€ What's changed?
β‘οΈ What's your motivation?
π·οΈ What kind of change is this?
β»οΈ Anything particular you want feedback on?
π Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.