Crate nu_parser[][src]

Structs

LiteBlock

A LiteBlock is a series of LiteGroups, separated by newlines.

LiteCommand

A LiteCommand is a list of words that will get meaning when processed by the parser.

LiteGroup

A LiteGroup is a series of LitePipelines, separated by ;.

LitePipeline

A LitePipeline is a series of LiteCommands, separated by |.

Signature

Traits

ParserScope
SignatureRegistry

Functions

classify_block
expand_ndots
expand_path
garbage

Easy shorthand function to create a garbage expression at the given span

lex

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)

parse
parse_block

Try to parse a list of tokens into a block.

parse_full_column_path

Parses a column path, adding in the preceding reference to $it if it's elided

parse_math_expression

Handle parsing math expressions, complete with working with the precedence of the operators

shapes

Converts a series of commands into a vec of spanned shapes ready for color-highlighting