Expand description
A generic library for lossless syntax trees.
See examples/s_expressions.rs
for a tutorial.
Structs
GreenNode
is an immutable syntax tree,
which is cheap to update. It lacks parent
pointers and information about offsets.A builder for a green tree.
A
SmolStr
is a string type that has the following properties:Akn immutable lazy constructed syntax tree with offsets and parent pointers.
Iterator over node’s children.
A range in the text, represented as a pair of
TextUnit
s.An offset into text.
Offset is represented as
u32
storing number of utf8-bytes,
but most of the clients should treat it like opaque measure.Owned smart pointer for syntax Nodes.
It can be used with any type implementing
TransparentNewType<SyntaxNode>
.Enums
There might be zero, one or two leaves at a given offset.
WalkeEvent
describes tree walking process.Traits
A marker trait for transparent newtypes.
Types
customizes data, stored in the
syntax tree. All types in this crate are
parametrized over T: Types
.