Crate sise

Source
Expand description

SISE (Simple S-expression) is a file format based on S-expressions.

§Minimum Rust version

The minimum Rust version required by this crate is 1.56.

Macros§

sise_tree
Macro to define trees of nodes with a lighter syntax.

Structs§

Parser
Parser that decodes a SISE file into a sequence of ParsedItem.
Serializer
Serializes into a possibly multi-line string.
SerializerStyle

Enums§

ParseError
Represents a parse error.
ParsedItem
TreeNode
A SISE tree node.

Functions§

check_atom
Checks whether atom is a valid atom (i.e. matches the regular expression documented at TreeNode::Atom).
is_atom_chr
Returns whether chr is a valid atom character outside a string (i.e. one of :atomchar: documented at TreeNode::Atom).
is_atom_string_chr
Returns whether chr is a valid atom character inside a string, excluding " and \ (i.e. one of :stringchar: documented at TreeNode::Atom).
parse_tree
Parses into a tree of TreeNode.
serialize_tree
Serializes a tree of nodes into serializer.