| Copyright | (c) 2009 Bernie Pope |
|---|---|
| License | BSD-style |
| Maintainer | bjpop@csse.unimelb.edu.au |
| Stability | experimental |
| Portability | ghc |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Language.Python.Common.ParseError
Description
Error values for the lexer and parser.
Documentation
data ParseError Source #
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
| Show ParseError Source # | |
Defined in Language.Python.Common.ParseError | |
| Eq ParseError Source # | |
Defined in Language.Python.Common.ParseError Methods (==) :: ParseError -> ParseError -> Bool Source # (/=) :: ParseError -> ParseError -> Bool Source # | |
| Ord ParseError Source # | |
Defined in Language.Python.Common.ParseError Methods compare :: ParseError -> ParseError -> Ordering Source # (<) :: ParseError -> ParseError -> Bool Source # (<=) :: ParseError -> ParseError -> Bool Source # (>) :: ParseError -> ParseError -> Bool Source # (>=) :: ParseError -> ParseError -> Bool Source # max :: ParseError -> ParseError -> ParseError Source # min :: ParseError -> ParseError -> ParseError Source # | |
| Pretty ParseError Source # | |
Defined in Language.Python.Common.PrettyParseError Methods pretty :: ParseError -> Doc Source # | |