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

Safe HaskellSafe
LanguageHaskell98

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 String Source #

Parse an arithmetic expression.

word :: Stream s m Char => ParsecT s u m Word Source #

Parse a word.

heredocWord :: Stream s m Char => ParsecT s u m Word Source #

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

name :: Stream s m Char => ParsecT s u m String Source #

Parse a parameter name.

subscript :: Stream s m Char => ParsecT s u m Word Source #

Parse a subscript.

assign :: Stream s m Char => ParsecT s u m Assign Source #

Parse an assignment.

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

Parse the longest available operator from a list.