zantetsu-ffi 0.1.2

Multi-language FFI bindings for Zantetsu (Node, Python, C)
Documentation
//! # Zantetsu FFI
//!
//! Multi-language FFI bindings for Zantetsu.
//! Exports the core parsing engine to TypeScript/Node (napi-rs),
//! Python (PyO3), and C/C++ (cbindgen).

#[cfg(feature = "node")]
mod node;

#[cfg(feature = "python")]
mod python;

// Re-export for node bindings
pub use zantetsu_core::{HeuristicParser, ParseResult};

#[cfg(feature = "node")]
pub use node::HeuristicParserNode;

#[cfg(feature = "python")]
pub use python::HeuristicParserPy;

#[cfg(feature = "python")]
use pyo3::prelude::*;

#[cfg(feature = "python")]
#[pymodule]
fn zantetsu(m: &Bound<'_, PyModule>) -> PyResult<()> {
    python::pymodule(m)
}