language-sh-0.0.3.1: A package for parsing shell scripts

Language.Sh.Parser

Description

Here we use the stuff defined in the AST and Parsec modules to parse things.

Synopsis

Documentation

parseSource

Arguments

:: [(String, String)]

list of alises to expand

-> String

input string

-> Either (String, Bool) [Command] 

This is the main export here. We take a list of aliases for the environment and a String to parse. The return type is Right [Command] if parsing succeeded and Left (String,Bool) upon failure. The Bool is True when the error was fatal/unrecoverable.