glados-1.0.0.0: Generic Language and Data Operand Syntax
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ast.Parser

Synopsis

Documentation

parse :: String -> String -> IO (Either String Program) Source #

Parses a string into an abstract syntax tree (AST). The parse function takes a filename String, and an input String as a parameter and returns either an AST or an error message.