Expand description
Arbor Core - AST parsing and code analysis
This crate provides the foundational parsing capabilities for Arbor. It uses Tree-sitter to parse source files into ASTs and extract meaningful code entities like functions, classes, and their relationships.
§Example
use arbor_core::{parse_file, CodeNode};
use std::path::Path;
let nodes = parse_file(Path::new("src/main.rs")).unwrap();
for node in nodes {
println!("{}: {} (line {})", node.kind, node.name, node.line_start);
}Re-exports§
pub use error::ParseError;pub use error::Result;pub use languages::LanguageParser;pub use node::CodeNode;pub use node::NodeKind;pub use node::Visibility;pub use parser::detect_language;pub use parser::parse_file;pub use parser::parse_source;pub use parser_v2::ArborParser;pub use parser_v2::ParseResult;pub use parser_v2::RelationType;pub use parser_v2::SymbolRelation;