Skip to main contentCrate synx_format
Source - binary
- SYNX Binary Format (.synxb) — compact binary serialization with string interning.
- diff
- Structural diff between two SYNX values.
- Constraints
- Constraints from [min:3, max:30, required, type:int].
- DiffChange
- A single changed key with its previous and new value.
- DiffResult
- Result of a structural diff between two SYNX objects.
- IncludeDirective
- Include directive: !include path [alias]
- Meta
- Metadata for a single key (markers, args, constraints).
- Options
- Options for active mode resolution.
- ParseResult
- Full parse result with metadata.
- Synx
- Main entry point for the SYNX parser.
- Mode
- File mode.
- Value
- SYNX value types.
- diff_objects
- Compute a structural diff between two SYNX objects (top-level keys).
- diff_to_value
- Convert a
DiffResult into a Value::Object suitable for JSON serialisation. - parse
- Parse a SYNX text string into a value tree with metadata.
- reshape_tool_output
- Reshape parsed tree for
!tool mode. - 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).
- MetaMap
- Map of key → metadata for one object level.