Module parse

Source
Expand description

The definition of a parser (and related methods) for the shell language.

Structs§

CommandGroupDelimiters
Used to configure when Parser::command_group stops parsing commands.
Parser
A parser for the shell language. It will parse shell commands from a stream of shell Tokens, and pass them to an AST builder.
ParserIterator
An Iterator adapter around a Parser.
SourcePos
Indicates a character/token position in the original source.

Enums§

ParseError
The error type which is returned from parsing shell commands.

Type Aliases§

DefaultParser
A parser which will use a default AST builder implementation, yielding results in terms of types defined in the ast module.
ParseResult
A specialized Result type for parsing shell commands.