Crate nu_parser[−][src]
Structs
A LiteBlock
is a series of LiteGroup
s, separated by newlines.
A LiteCommand
is a list of words that will get meaning when processed by
the parser.
A LiteGroup
is a series of LitePipeline
s, separated by ;
.
A LitePipeline
is a series of LiteCommand
s, separated by |
.
Enums
Traits
Functions
Easy shorthand function to create a garbage expression at the given span
Breaks the input string into a vector of tokens. This tokenization only tries to classify separators like semicolons, pipes, etc from external bare values (values that haven’t been classified further) Takes in a string and and offset, which is used to offset the spans created (for when this function is used to parse inner strings)
Try to parse a list of tokens into a block.
Parses a column path, adding in the preceding reference to $it if it’s elided
Handle parsing math expressions, complete with working with the precedence of the operators
Converts a series of commands into a vec of spanned shapes ready for color-highlighting