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

Safe HaskellNone

Agda.Syntax.Parser

Contents

Synopsis

Types

data Parser a Source

Wrapped Parser type.

Parse functions

Parsers

moduleParser :: Parser ModuleSource

Parses a module.

exprParser :: Parser ExprSource

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