Skip to main content

Crate aam_core

Crate aam_core 

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_core::aaml::AAML;

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

Modules§

aam
aam_value
aaml
Core AAML parser and runtime.
aot
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 with beautiful colored output.
found_value
Wrapper type returned by AAML lookup methods.
from_aam
macros
pipeline
The new five-stage architecture pipeline for AAML parsing.

Macros§

define_aam_loader
Generates an AAM-based config loader struct that reads .aam files from a directory and exposes typed field accessors.