Skip to content
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

[java] provide a public method to convert a cucumber expression into parsed segments #51

Open
laeubi opened this issue Dec 2, 2021 · 3 comments

Comments

@laeubi
Copy link

laeubi commented Dec 2, 2021

For regularExpressions it is already possible to parse them into groups with a public method, a similar approach should be possible for the CucumberExpressionsParser as well (maybe the Groups Aproach could be reused here...)

@aslakhellesoy
Copy link
Contributor

Have you tried converting the Cucumber Expression to a Pattern then call the static Group.parse method?

@mpkorstanje
Copy link
Contributor

I believe he is interested in the AST for the purpose of syntax highlighting in Eclipse.

@aslakhellesoy
Copy link
Contributor

Aha I see. We'd have to add a getter to get the AST to achieve that. The AST API is currently internal, and I think we should keep it internal until we have implemented the proposed changes in #41 because that will change the AST quite a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants