jaml 0.2.0

A Rust library for parsing and formatting JAML (Just Another Markup Language)
Documentation
//! Parse JAML text into a [`Value`].
//!
//! The main entry point is [`parse`], which parses a string into a [`Value`].
//!
//! ```
//! use jaml::parse;
//!
//! let value = parse(r#"
//! name: "Alice"
//! age: 30
//! "#).unwrap();
//! assert!(value.is_map());
//! ```

use crate::Value;

mod error;
mod indent;
mod parse;

pub use error::{Error, Result};

/// Parse a JAML string into a [`Value`].
pub fn parse(input: &str) -> Result<Value> {
    parse::parse_impl(input)
}