while-lang-parser-0.1.0.0: Parser for the While language.

Safe HaskellNone

Language.While.Parser

Description

Provides parsing of while-language code. Supports reading either a file or stdin, resulting in an AST.

Synopsis

Documentation

loadFile :: FilePath -> IO (Either String Stm)Source

Parse the specified file and return either failure or the program.

loadStdin :: IO (Either String Stm)Source

Parse stdin and return either failure or the program.