Struct conch_parser::ast::builder::DefaultBuilder [] [src]

pub struct DefaultBuilder<T>(_);

A Builder implementation which builds shell commands using the (non-atomic) AST definitions in the ast module.

Methods

impl<T> DefaultBuilder<T>
[src]

Constructs a builder.

Trait Implementations

impl<T> Debug for DefaultBuilder<T>
[src]

Formats the value using the given formatter.

impl<T> Default for DefaultBuilder<T>
[src]

Returns the "default value" for a type. Read more

impl<T> Clone for DefaultBuilder<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Copy for DefaultBuilder<T>
[src]

impl<T: From<String>> Builder for DefaultBuilder<T>
[src]

The type which represents a complete, top-level command.

The type which represents an and/or list of commands.

The type which represents a command that can be used in an and/or command list.

The type which represents a command that can be used in a pipeline.

The type which represents compound commands like if, case, for, etc.

The type which represents shell words, which can be command names or arguments.

The type which represents a file descriptor redirection.

A type for returning custom parse/build errors.

Invoked once a complete command is found. That is, a command delimited by a newline, semicolon, ampersand, or the end of input. Read more

Invoked when multiple commands are parsed which are separated by && or ||. Typically after the first command is run, each of the following commands may or may not be executed, depending on the exit status of the previously executed command. Read more

Invoked when a pipeline of commands is parsed. A pipeline is one or more commands where the standard output of the previous typically becomes the standard input of the next. Read more

Invoked when the "simplest" possible command is parsed: an executable with arguments. Read more

Invoked when a non-zero number of commands were parsed between balanced curly braces. Typically these commands should run within the current shell environment. Read more

Invoked when a non-zero number of commands were parsed between balanced parentheses. Typically these commands should run within their own environment without affecting the shell's global environment. Read more

Invoked when a loop command like while or until is parsed. Typically these commands will execute their body based on the exit status of their guard. Read more

Invoked when an if conditional command is parsed. Typically an if command is made up of one or more guard-body pairs, where the body of the first successful corresponding guard is executed. There can also be an optional else part to be run if no guard is successful. Read more

Invoked when a for command is parsed. Typically a for command binds a variable to each member in a group of words and invokes its body with that variable present in the environment. If no words are specified, the command will iterate over the arguments to the script or enclosing function. Read more

Invoked when a case command is parsed. Typically this command will execute certain commands when a given word matches a pattern. Read more

Bridges the gap between a PipeableCommand and a CompoundCommand since CompoundCommands are typically PipeableCommands as well. Read more

Invoked when a function declaration is parsed. Typically a function declaration overwrites any previously defined function within the current environment. Read more

Invoked when only comments are parsed with no commands following. This can occur if an entire shell script is commented out or if there are comments present at the end of the script. Read more

Invoked when a word is parsed. Read more

Invoked when a redirect is parsed. Read more