Copyright | (c) Maciej Bendkowski 2017-2018 |
---|---|
License | BSD3 |
Maintainer | maciej.bendkowski@tcs.uj.edu.pl |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Common parser utilities and helper functions.
- sc :: Parser ()
- lexeme :: Parser a -> Parser a
- symbol :: String -> Parser String
- parens :: Parser a -> Parser a
- brackets :: Parser a -> Parser a
- integer :: Parser Int
- double :: Parser Double
- sepBy2 :: Parser a -> Parser b -> Parser [a]
- parseN :: Parser a -> Int -> Parser [a]
- parseFromFile :: Parsec e String a -> String -> IO (Either (ParseError Char e) a)
- printError :: (ShowToken t, Ord t, ShowErrorComponent e) => ParseError t e -> IO a
Documentation
parseFromFile :: Parsec e String a -> String -> IO (Either (ParseError Char e) a) Source #
Uses an input file for parsing.
printError :: (ShowToken t, Ord t, ShowErrorComponent e) => ParseError t e -> IO a Source #
Prints the given parsing errors.