Crate yggdrasil_rt
source ·Expand description
Re-exports§
pub use crate::errors::InvalidTag;
pub use crate::errors::YggdrasilError;
Modules§
- Provides trait constraints for parsing streaming input structures
- Handle state transitions of parsed streams
Structs§
- Line iterator for Spans, created by
Span::lines()
. - Line iterator for Spans, created by
Span::lines_span()
. - A cursor position in a
&str
which provides useful methods to manually parse that string. - A regex matcher that works by composing several other regex matchers automatically.
- A precompiled regular expression state machine
- Implementation of a
Stack
which maintains popped elements and length of previous states in order to rewind the stack to a previous state. - The complete state of a
Parser
. - A matching pair of
Token
s and everything between them. - An iterator over
Pair
s. It is created byPairs::flatten
. - find tags in toke pair
- find tags in toke pair
Enums§
- The current lookahead status of a
ParserState
. - Match direction for the stack. Used in
PEEK[a..b]
/stack_match_peek_slice
. - A token generated by a
Parser
. - This structure serves to improve performance over Token objects in two ways:
Traits§
- A typed ast node
- A trait with a single method that parses strings.
- Define rules subject to Yggdrasil
Functions§
- Merges two spans into one.
- Creates a
ParserState
from a&str
, supplying it to a closuref
.
Type Aliases§
- Type alias to simplify specifying the return value of chained closures.
- Output result alias