cyrs-syntax 0.1.0

Lossless CST and recovering parser for Cypher / GQL (spec 0001 §4).
Documentation
//! Compiletest-style golden corpus for `cyrs-syntax` (spec 0001 §17.6).
//!
//! Discovers every `.cypher` file under `tests/ui/syntax/`, runs the parser,
//! and compares syntax error output against the companion `.stderr` sidecar.
//!
//! # Blessing
//!
//! Set `BLESS=1` (or run `cargo xtask bless -p cyrs-syntax`) to regenerate
//! the `.stderr` sidecars from the actual pipeline output.

use std::path::Path;

use cyrs_testkit::{CorpusKind, run_ui_corpus};

#[test]
fn ui_syntax_corpus() {
    run_ui_corpus(
        CorpusKind::Syntax,
        Path::new(env!("CARGO_MANIFEST_DIR")),
        "cyrs-syntax",
    );
}