parsm 0.8.3

Multi-format data processor that understands structured text better than sed or awk. Supports JSON, CSV, YAML, TOML, logfmt, and plain text with powerful filtering and templating.
Documentation
//! Realistic example: parsm auto-detects format per input stream and parses
//! accordingly, using the library API directly (no CLI, no subprocess).
//!
//! Run with: cargo run --example streaming_format_detection

use parsm::StreamingParser;

fn main() {
    let samples = [
        ("json", r#"{"name": "Alice", "age": 30}"#),
        ("csv", "Alice,30,Engineer"),
        ("logfmt", "level=error msg=timeout service=api"),
    ];

    for (label, line) in samples {
        let mut parser = StreamingParser::new();
        let parsed = parser.parse_line(line).expect("sample line should parse");
        println!("{label}: {parsed:?}");
    }
}