Safe Haskell | None |
---|
- type Parser a = P (Str Char String LineCol) a
- pInt :: Parser Int
- pChr :: Parser Char
- pVar' :: Parser String
- pVar :: Set String -> Parser String
- pCon' :: Parser String
- pCon :: Set String -> Parser String
- pIdChar :: Parser Char
- pOp :: Parser String
- pTerm :: String -> Parser String
- pAnyExcept :: [Char] -> Parser Char
- pSpaces' :: Parser String
- lc2Pos :: LineCol -> Pos
- newtype Const f a s = C {
- unC :: f a
- compile :: Grammar a -> Parser a
- compileKws :: Set String -> Grammar a -> Parser a
- mapEnv :: (forall a. f a s -> g a s) -> Env f s env -> Env g s env
- generate :: Set String -> Grammar a -> Parser a
- data ParseResult a
- nuberror :: Error a -> Error a
- parse :: Parser a -> String -> ParseResult a
Documentation
pAnyExcept :: [Char] -> Parser CharSource
compile :: Grammar a -> Parser aSource
The function compile
generates a parser out of a closed grammar
compileKws :: Set String -> Grammar a -> Parser aSource
The function compileKws
generates a parser out of a closed grammar, restricting the identifiers to not belong to the list of reserved words