There are two Java DSLs for Cypher: https://github.com/Wolfgang-Schuetzelhofer/jcypher https://github.com/neo4j-contrib/cypher-dsl
There is peg.js for PEG parsers in JS And codemirror supports cypher now out of the box. The parboiled parser of cypher is also accessible, you might have more success with the prettifier: https://github.com/neo4j/neo4j/blob/master/community/cypher/cypher-compiler-2.2/src/main/scala/org/neo4j/cypher/internal/compiler/v2_2/prettifier/Prettifier.scala https://github.com/neo4j/neo4j/blob/master/community/cypher/cypher-compiler-2.2/src/test/scala/org/neo4j/cypher/internal/compiler/v2_2/prettifier/PrettifierParserTest.scala Michael > Am 23.02.2015 um 22:30 schrieb Clark Richey <[email protected]>: > > Hello! > Is anyone aware of a Java or JS based cypher parser or creator? I’m ideally > looking to generate cypher queries on the front end that are sent to the > application via rest. The application will make some adjustments to the > queries for security purposes (ensuring all cypher is query only, adding in > application specific constraints, etc) and will then execute the cypher query. > > I haven’t been able to find a way to directly access the internal neo4J > cypher parser. > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
