Skip to main content

Crate aam_rs

Crate aam_rs 

Source
Expand description

§aam-rs

A lightweight AAML (AAM Markup Language) parser and validator.

§Features

  • Simple key = value configuration syntax with comment support (#)
  • Directive system: @import, @derive, @schema, @type
  • Schema-based type validation — fields are checked automatically during parsing
  • Built-in types: i32, f64, string, bool, color, math::vector2/3/4, physics::kilogram, time::datetime, and more
  • Custom type aliases via @type
  • Inheritance via @derive with child-wins-on-conflict semantics

§Quick start

use aam_rs::aaml::AAML;

let cfg = AAML::load("config.aam").unwrap();
println!("{}", cfg.find_obj("host").unwrap());

Modules§

aaml
Core AAML parser and runtime.
builder
Fluent builder for constructing AAML configuration content programmatically.
commands
Command infrastructure for AAML directives.
error
Error types for the AAML parser and validation pipeline.
found_value
Wrapper type returned by AAML lookup methods.