Skip to main content

decy_parser/
lib.rs

1//! C AST parsing using clang-sys.
2//!
3//! This crate provides a production-grade C parser using LLVM/Clang bindings.
4
5#![warn(missing_docs)]
6#![warn(clippy::all)]
7// Note: clang-sys requires unsafe for FFI, but we allow it only in this crate
8#![allow(unsafe_code)]
9
10pub mod diagnostic;
11pub mod parser;
12
13pub use diagnostic::{Diagnostic, DiagnosticError, ErrorCategory, Severity};
14pub use parser::{
15    Ast, CParser, Expression, Function, Parameter, Statement, Struct, StructField, Type, Variable,
16};