language-bash-0.6.0: Parsing and pretty-printing Bash shell scripts

Safe HaskellSafe-Inferred

Language.Bash.Parse.Word

Description

Word-level parsers.

Synopsis

Documentation

skipSpace :: Stream s m Char => ParsecT s u m ()Source

Skip spaces, tabs, and comments.

arith :: Stream s m Char => ParsecT s u m StringSource

Parse an arithmetic expression.

word :: Stream s m Char => ParsecT s u m WordSource

Parse a word.

heredocWord :: Stream s m Char => ParsecT s u m WordSource

Parse a here document as a word. This parses substitutions, but not most quoting.

name :: Stream s m Char => ParsecT s u m StringSource

Parse a parameter name.

subscript :: Stream s m Char => ParsecT s u m WordSource

Parse a subscript.

assign :: Stream s m Char => ParsecT s u m AssignSource

Parse an assignment.

operator :: Stream s m Char => [String] -> ParsecT s u m StringSource

Parse the longest available operator from a list.