mollendorff-forge 10.0.0-beta.8

Battle-tested financial math for AI. 173 Excel-compatible functions validated against Gnumeric & R. MCP integration, Monte Carlo, Decision Trees, Real Options.
Documentation
//! Forge - YAML formula calculator with Excel-style arrays
//!
//! This library provides functionality to parse YAML files containing formulas,
//! calculate them in dependency order, and update values.
//!
//! # Features
//!
//! - Excel-style formulas in YAML files (SUM, AVERAGE, IF, etc.)
//! - Array model for Excel-compatible column-based data
//! - JSON Schema validation
//! - Type-safe homogeneous arrays (Number, Text, Date, Boolean)
//! - Excel import/export
//! - Multi-document YAML support
//!
//! # Example
//!
//! ```no_run
//! use mollendorff_forge::parser::parse_model;
//! use mollendorff_forge::core::ArrayCalculator;
//! use std::path::Path;
//!
//! let path = Path::new("model.yaml");
//! let model = parse_model(path)?;
//!
//! println!("Tables: {}", model.tables.len());
//! println!("Scalars: {}", model.scalars.len());
//!
//! let calculator = ArrayCalculator::new(model);
//! let result = calculator.calculate_all()?;
//! # Ok::<(), mollendorff_forge::error::ForgeError>(())
//! ```

// Demo modules (always included)
pub mod cli;
pub mod core;
pub mod error;
pub mod excel;
pub mod functions;
pub mod parser;
pub mod types;
pub mod writer;

// Analysis modules
pub mod api;
pub mod bayesian;
pub mod bootstrap;
pub mod decision_trees;
pub mod mcp;
pub mod monte_carlo;
pub mod real_options;
pub mod scenarios;
pub mod tornado;

// Re-export commonly used types
pub use error::{ForgeError, ForgeResult};
pub use types::{Column, ColumnValue, ParsedModel, Table, Variable};