JustBash.Parser.Redirection (JustBash v0.4.0)

View Source

Parser for shell redirections.

Handles parsing of all redirection operators:

  • Input: <, <<, <<<, <&
  • Output: >, >>, >&, >|
  • Combined: &>, &>>
  • Heredocs: <<, <<-

Summary

Functions

Parse a single redirection.

Parse all redirections at the current position.

Check if the current token starts a redirection.

Functions

parse_redirection(parser, helpers)

Parse a single redirection.

parse_redirections(parser, acc, helpers)

Parse all redirections at the current position.

redirection?(parser, helpers)

Check if the current token starts a redirection.