Module soch_codec

Module soch_codec 

Source
Expand description

TOON Format Codec

This module implements the TOON (Token-Optimized Object Notation) format specification using the official toon-format crate.

§TOON Format Grammar (Simplified)

document     ::= top_level_value
value        ::= simple_object | array | primitive
simple_object::= (key ":" value newline)+ 
array        ::= header newline item*
header       ::= name "[" count "]" ( "{" fields "}" )? ":"
item         ::= "-" value newline | row newline

Structs§

SochDbBinaryCodec
TOON binary codec (Renamed from SochBinaryCodec to SochDbBinaryCodec)
SochDocument
TOON document
SochTextEncoder
TOON text format encoder (wraps toon-format crate)
SochTextParser
TOON text format decoder/parser (wraps toon-format crate)
SochTokenCounter
Token counter (dummy implementation for now)

Enums§

SochParseError
Parse error types
SochTypeTag
TOON value type tags for binary encoding

Constants§

TOON_MAGIC
TOON binary format magic bytes