Skip to main content

sparrowdb_cypher/
lib.rs

1//! sparrowdb-cypher: Cypher lexer, parser, AST, and binder.
2
3pub mod ast;
4pub mod binder;
5pub mod lexer;
6pub mod parser;
7
8pub use ast::Statement;
9pub use binder::{bind, BoundStatement};
10pub use parser::parse;
11
12#[cfg(test)]
13mod tests {
14    use super::*;
15
16    #[test]
17    fn parser_type_exists() {
18        // Smoke test: the parse function is callable.
19        let _ = parse("CHECKPOINT");
20    }
21
22    #[test]
23    fn statement_variants_debug() {
24        let s = Statement::Checkpoint;
25        assert!(!format!("{s:?}").is_empty());
26    }
27}