-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Cypher grammar fails to parse call subqueries. #3544
Comments
The project website for Cypher already publishes a combined grammar. I don't understand why this grammar was split and symbols renamed. The description on the initial commit is the empty string (typical for the grammars-v4 project). I suspect the splitting may be for the |
The |
Hmm. Maybe for the |
Trash is my toolkit for Antlr grammars. It can do a lot of different things, including generate parser drivers, check coverage of the tests on the grammar, perform "grouped" and "individual" parsing, search for problems in grammars, do performance testing, rename symbols, refactor rules, etc. The grammar was split because the comments are placed on a named channel. That cannot be done when the grammar is a combined lexer/parser grammar. I'm not sure what best to do yet because I'd like to see how the official grammar performs. Do the tests parse? |
Both tests fail to parse with the official grammar for OpenCypher. This is, however, valid Cypher and can be executed against Neo4j. Call Subquery Docs |
Example:
Is valid syntax with a valid 'EXPLAIN' for Neo4j version 4.4.21
The Parser resulted in:
The text was updated successfully, but these errors were encountered: