Language.Python.Common.ParseError

language-python-0.5.4: Parsing and pretty printing of Python code.

Copyright | (c) 2009 Bernie Pope
License | BSD-style
Maintainer | bjpop@csse.unimelb.edu.au
Stability | experimental
Portability | ghc
Safe Haskell | Safe
Language | Haskell98

Language.Python.Common.ParseError

Description

Error values for the lexer and parser.

# Documentation

data ParseError #

Constructors

UnexpectedToken Token | An error from the parser. Token found where it should not be. Note: tokens contain their own source span.
UnexpectedChar Char SrcLocation | An error from the lexer. Character found where it should not be.
StrError String | A generic error containing a string message. No source location.

Instances

Eq ParseError # |
Methods (==) :: ParseError -> ParseError -> Bool # (/=) :: ParseError -> ParseError -> Bool #
Ord ParseError # |
Methods compare :: ParseError -> ParseError -> Ordering # (<) :: ParseError -> ParseError -> Bool # (<=) :: ParseError -> ParseError -> Bool # (>) :: ParseError -> ParseError -> Bool # (>=) :: ParseError -> ParseError -> Bool # max :: ParseError -> ParseError -> ParseError # min :: ParseError -> ParseError -> ParseError #
Show ParseError # |
Methods showsPrec :: Int -> ParseError -> ShowS # show :: ParseError -> String # showList :: [ParseError] -> ShowS #
Error ParseError # |
Methods noMsg :: ParseError # strMsg :: String -> ParseError #