Expand description
§SYNX Core — The Active Data Format
High-performance SYNX parser with full !active engine support.
Single Rust crate powering all language bindings.
use synx_core::{Synx, Value};
let data = Synx::parse("name Wario\nage 30\nactive true");
assert_eq!(data["name"], Value::String("Wario".into()));
assert_eq!(data["age"], Value::Int(30));Structs§
- Meta
- Metadata for a single key (markers, args, constraints).
- Options
- Options for active mode resolution.
- Parse
Result - Full parse result with metadata.
- Synx
- Main entry point for the SYNX parser.
Enums§
Functions§
- parse
- Parse a SYNX text string into a value tree with metadata.
- resolve
- Resolve all active-mode markers in a ParseResult. Returns the resolved root Value.
- safe_
calc - Safely evaluate an arithmetic expression. All variable references must be substituted with numbers before calling this.
- to_json
- Convert a Value to a JSON string.
- write_
json - Write a Value as JSON string (for FFI output).
Type Aliases§
- MetaMap
- Map of key → metadata for one object level.