Module dc_stream

Module dc_stream 

Source
Expand description

Document Character (Dc) token stream encoder and decoder.

Implements canonical balanced-group prefix encoding for format specifications: 298 operator left right 299 as specified in docs/file-info.md.

Enums§

DcToken
Token in a Dc format specification stream.

Functions§

decode_dc_stream
Decodes a slice of DcTokens into a FormatExpr.
decode_dc_stream_string
Decodes a string of space-separated Dc tokens into a FormatExpr.
decode_dc_stream_string_with_resolver
Decodes a string of space-separated Dc tokens into a FormatExpr using the given syntax resolver.
decode_dc_stream_with_resolver
Decodes a slice of DcTokens into a FormatExpr using the given syntax resolver.
encode_dc_stream
Encodes a FormatExpr into a canonical slice of DcTokens using succinct prefix notation.
encode_dc_stream_string
Encodes a FormatExpr into a space-separated symbolic token stream string.