Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- type Parser s p a = Parser (Located Token) (Expected (Located Token) s p) a
- type Error s p = ParseError (Located Token) (Expected (Located Token) s p)
- data Config s p = Config {
- configReadSym :: Text -> Maybe s
- configReadPrm :: Text -> Maybe p
- parseDecls :: Config s p -> [Located Token] -> Either (Error s p) [Decl s p]
- parseExp :: Config s p -> [Located Token] -> Either (Error s p) (Exp s p)
- pDecls :: Config s p -> Parser s p [Decl s p]
- pDecl :: Config s p -> Parser s p (Decl s p)
- pExp :: Config s p -> Parser s p (Exp s p)
- pExpApp :: Config s p -> Parser s p (Exp s p)
- pExpAtom :: Config s p -> Parser s p (Exp s p)
- pParam :: Parser s p Param
- pTrain :: Config s p -> Parser s p [Car s p]
- pTrainCar :: Config s p -> Parser s p (Car s p)
- pCarSimRec :: Config s p -> Parser s p (Car s p)
- pBind :: Config s p -> Parser s p (SnvBind s p)
- pUps :: Parser s p Ups
- pBump :: Parser s p UpsBump
- pNat :: Parser s p Integer
- pText :: Parser s p Text
- pNameOfSpace :: Space -> Parser s p Text
- pName :: Parser s p (Space, Text)
- pEnd :: Parser s p ()
- pPunc :: Char -> Parser s p ()
Documentation
Config | |
|
Parse some Shimmer declarations from a list of tokens.
Parse a Shimmer expression from a list of tokens.
pTrain :: Config s p -> Parser s p [Car s p] Source #
Parser for a substitution train. The cars are produced in reverse order.
pCarSimRec :: Config s p -> Parser s p (Car s p) Source #
Parser for a substitution environment.
Snv ::= '[' Bind*, ']'