Skip to content

phall1/cyrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

110 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cyrs

crates.io docs.rs CI MSRV License: Apache-2.0 OR MIT

A compiler front-end for Cypher and GQL, written in Rust. Lex, parse, type-check, lint, format, and lower queries to a logical plan IR. cyrs does not execute queries — that is the database's job.

demo

Install

cargo install cyrs-cli

Use

cypher parse demo/samples/good.cyp
cypher check demo/samples/unknown_var.cyp
cypher fmt   demo/samples/needs_fmt.cyp

As a library: cyrs-lang. As a language server: cyrs-lsp — see demo/.

Coverage

openCypher v9 TCK: 3 632 / 3 897 scenarios accepted (93.2 %). GQL ISO/IEC 39075:2024 bootstrap: 140 / 140 scenarios accepted (100 %); 153 of 574 grammar productions reached (26.7 %). All numbers measure parser acceptance, not runtime conformance. Breakdown: docs/coverage.md.

Docs

Status

0.1.0 on crates.io. Pre-1.0; the API is depend-able, with minor breakage possible on the path to 1.0. Surface-by-surface stability contract: docs/stability.md.

License

Dual-licensed under Apache-2.0 OR MIT. Contributions are dual-licensed under the same terms unless stated otherwise.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Contributors