Giter Club home page Giter Club logo

open-cypher's Introduction

open-cypher

created by Austin Poor

Parse openCypher queries using Rust.

open-cypher uses the pest library to parse cypher queries using the pestfile, src/cypher.pest, based on the openCypher EBNF file (link or file).

Project Status

This library is still in a very early stage. The repo includes a pest grammar file for defining the cyper language, based on the ebnf file from the openCypher site.

My goal is to finish the pest definition and possibly generate a cleaner AST based on what pest parses.

For reference, the following other projects use pest: https://github.com/pest-parser/pest#projects-using-pest

Project Structure

  • src/
    • cypher.pest: The pest grammar file for generating a rust parser and types, based on the ebnf file from the openCypher site.
    • main.rs: Currently the main directory for quick tests (will be removed)
    • parser.rs: Contains functions for parsing and viewing parsed cypher queries
    • ast.rs: Will contain code for potentially exposing a cleaner cypher AST, than is created by pest
  • assets/
    • cypher.ebnf: Open cypher grammar definition from the openCypher site

Contributing

Contributions of any size are more than welcome! Please feel free to submit issues or PRs.

I'm also open to any suggestions regarding overall project direction.

To Do

  • Add tests
  • Add examples
  • Add documentation

open-cypher's People

Contributors

a-poor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.