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

Invalid syntax #539

Open
howard-gleason opened this issue Aug 10, 2022 · 3 comments
Open

Invalid syntax #539

howard-gleason opened this issue Aug 10, 2022 · 3 comments

Comments

@howard-gleason
Copy link

Thanks for the recent grammar updates that have fixed other syntax errors. The following Cypher query is valid, however, openCypher throws a parse error

MATCH path=()-[]->()
RETURN relationships(path)[0].name

In order to get openCypher to parse it, parentheses have to be added:

MATCH path=()-[]->()
RETURN (relationships(path)[0]).name

Can or will this syntax be accepted into openCypher?

@jacobfriedman
Copy link

On this note, would it be possible to include the generated .EBNF syntax in this repo as well?

@howard-gleason
Copy link
Author

@jacobfriedman

On this note, would it be possible to include the generated .EBNF syntax in this repo as well?

Milestone artifacts are posted here: https://opencypher.org/resources/

Generate your own by following: https://github.com/opencypher/openCypher/tree/master/grammar

@jacobfriedman
Copy link

jacobfriedman commented Aug 12, 2022

edit: Will turn this into an issue/request.

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

2 participants