raxit-core 0.1.2

Core security scanning engine for AI agent applications
Documentation
//! AST parsing using tree-sitter
//!
//! Provides fast, incremental parsing of Python code using tree-sitter

pub mod python;

use crate::error::Result;
use std::path::Path;

/// AST node representation
#[derive(Debug, Clone)]
pub struct AstNode {
    pub kind: String,
    pub start_line: u32,
    pub end_line: u32,
    pub text: String,
}

/// Parse a Python file and return the AST
pub fn parse_python_file(path: &Path) -> Result<Vec<AstNode>> {
    python::parse_file(path)
}

#[cfg(test)]
mod tests {
    #[test]
    fn test_ast_module() {
        // Placeholder test - module compiles successfully
    }
}