Agda-2.4.2.2: A dependently typed functional programming language and proof assistant

Safe HaskellNone
LanguageHaskell98

Agda.Syntax.Parser

Contents

Synopsis

Types

data Parser a Source

Wrapped Parser type.

Parse functions

parse :: Parser a -> String -> IO a Source

Parsers

moduleParser :: Parser Module Source

Parses a module.

exprParser :: Parser Expr Source

Parses an expression.

tokensParser :: Parser [Token] Source

Gives the parsed token stream (including comments).

Parse errors

data ParseError Source

What you get if parsing fails.

Constructors

ParseError 

Fields

errPos :: Position

where the error occured

errInput :: String

the remaining input

errPrevToken :: String

the previous token

errMsg :: String

hopefully an explanation of what happened