inf2ron 0.2.0

Parse Stranded II .inf definition files (items, objects, units, buildings, combinations) and output RON format
Documentation
// inf2ron – parse Stranded II .inf definition files to RON
// Copyright (C) 2025  inf2ron contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.

//! Parse Stranded II .inf definition files to generic RON/JSON.
//!
//! Format-agnostic parser: accepts **any** `key=value` syntax and
//! **any** `xxx=start` / `xxx=end` blocks. No hardcoded block names.
//! Classification of block contents is automatic:
//! - All lines parse as `key=value` → `Structured { fields, sub_blocks }`
//! - Otherwise → `Text { content }`
//!
//! # Example
//!
//! ```rust
//! use inf2ron::InfParser;
//!
//! let entries = InfParser::parse_str(r#"
//! id=9
//! name=Meat
//! group=food
//! script=start
//!   on:eat { eat 5,20,10,0; }
//! script=end
//! "#).unwrap();
//! assert_eq!(entries.len(), 1);
//! assert_eq!(entries[0].fields.get("name").unwrap()[0], "Meat");
//! assert!(entries[0].blocks.contains_key("script"));
//! ```

pub mod cli;
pub mod error;
pub mod parser;
pub mod types;

pub use error::{InfError, InfResult};
pub use parser::InfParser;
pub use types::*;