Contributing Neo4j-specific Cypher features to openCypher grammar

8 views
Skip to first unread message

Andres Felder

unread,
May 28, 2026, 9:47:26 AMMay 28
to openCypher
Hi everyone,

  I'm a computer science student at the University of Buenos Aires working on my thesis, which involves extending EvoMaster, a test generation tool, to support Neo4j databases. Part of this work requires parsing Cypher queries to calculate fitness heuristics.

  While evaluating parsing options, I looked at the openCypher ANTLR grammar and noticed it doesn't include some features that Neo4j supports, such as all(), any(), none(), and reduce() in WHERE clauses. I understand openCypher is a subset of Neo4j's Cypher, but I was wondering if there's interest in extending the grammar to cover these cases.

  I'd be happy to contribute a PR adding support for these features if that aligns with the project's goals. Before doing so, I wanted to check:

  1. Is this something the community would find useful?
  2. Are there any guidelines or considerations I should be aware of?
  3. Is the ANTLR grammar still actively maintained?

Thanks in advance for any feedback.
Andy

Hannes Voigt

unread,
May 28, 2026, 11:45:42 AMMay 28
to Andres Felder, openCypher
Hi Andres,

Thanks for reaching out. Happy to learn more about your test generation tool.

No, the ANTLR openCypher grammar is not maintained anymore - in fact the core were the grammar XML files.

That current state is in the „main“ branch. There you find a .bnf file describing the grammar more comprehensively and more aligned with the GQL grammar. I‘d think that includes the quantifiers and reduce, but I’d have to double check that.

We do not have a parser generated from that. I am not where anyone is working on that.

Thanks + Best
-Hannes

--
You received this message because you are subscribed to the Google Groups "openCypher" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencypher+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/opencypher/d11752fa-1029-48ed-8aaa-8b05eab9364dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages