use thiserror::Error;
#[derive(Error, Debug)]
pub enum GenError {
#[error("Invalid identifier: {0}")]
InvalidIdentifier(String),
#[error("Codegen failed: {0}")]
CodegenFailed(String),
#[error("Invalid AST structure: {0}")]
InvalidAst(String),
}
pub type Result<T> = std::result::Result<T, GenError>;