giml-syntax-0.1.0.0: Syntax for Giml - A purely functional programming language with emphasis on structural typing
Safe HaskellSafe-Inferred
LanguageGHC2021

Language.Giml.Syntax.Parse.API

Description

Parser API

Synopsis

API

runParser :: CompilePhase Text env b m => Parser a -> FilePath -> Text -> m a Source #

Lexer and parser stream runParser :: Parser e -> FilePath -> Text -> Either (Either ErrBundle ParseErr) e

Debugging stuff

readError :: forall m a. (Read a, Typeable a, MonadError ParseErr m, MonadFail m) => String -> m a Source #

It's like read, but actually useful.

pp :: Text -> IO () Source #

REPL testing utility function

ppA :: Text -> IO () Source #

REPL testing utility function

ppd :: Text -> IO () Source #

REPL testing utility function

ppt :: Text -> IO () Source #

REPL testing utility function