Safe Haskell | None |
---|
- type Parser n a = Parser (Tok n) a
- data Context = Context {}
- pModule :: (Ord n, Pretty n) => Context -> Parser n (Module SourcePos n)
- pExp :: Ord n => Context -> Parser n (Exp SourcePos n)
- pExpApp :: Ord n => Context -> Parser n (Exp SourcePos n)
- pExpAtom :: Ord n => Context -> Parser n (Exp SourcePos n)
- pType :: Ord n => Context -> Parser n (Type n)
- pTypeApp :: Ord n => Context -> Parser n (Type n)
- pTypeAtom :: Ord n => Context -> Parser n (Type n)
- pWitness :: Ord n => Context -> Parser n (Witness SourcePos n)
- pWitnessApp :: Ord n => Context -> Parser n (Witness SourcePos n)
- pWitnessAtom :: Ord n => Context -> Parser n (Witness SourcePos n)
- pCon :: Eq (Tok n) => ParsecT [Token (Tok n)] (ParserState (Tok n)) Identity n
- pLit :: Eq (Tok n) => ParsecT [Token (Tok n)] (ParserState (Tok n)) Identity n
- pBinder :: (Ord n, Eq (Tok n)) => ParsecT [Token (Tok n)] (ParserState (Tok n)) Identity (Binder n)
- pIndex :: Eq (Tok n) => ParsecT [Token (Tok n)] (ParserState (Tok n)) Identity Int
- pVar :: Eq (Tok n) => ParsecT [Token (Tok n)] (ParserState (Tok n)) Identity n
- pName :: Eq (Tok n) => ParsecT [Token (Tok n)] (ParserState (Tok n)) Identity n
- pTok :: TokAtom -> Parser n ()
- pTokAs :: TokAtom -> a -> Parser n a
Documentation
data Context
Configuration and information from the context. Used for context sensitive parsing.
Modules
pModule :: (Ord n, Pretty n) => Context -> Parser n (Module SourcePos n)Source
Parse a source tetra module.
Expressions
pExpAtom :: Ord n => Context -> Parser n (Exp SourcePos n)Source
Parse a variable, constructor or parenthesised expression.
Types
pTypeAtom :: Ord n => Context -> Parser n (Type n)
Parse a variable, constructor or parenthesised type.
Witnesses
pWitnessAtom :: Ord n => Context -> Parser n (Witness SourcePos n)
Parse a variable, constructor or parenthesised witness.
Constructors
pCon :: Eq (Tok n) => ParsecT [Token (Tok n)] (ParserState (Tok n)) Identity n
Parse a constructor name.
Variables
pBinder :: (Ord n, Eq (Tok n)) => ParsecT [Token (Tok n)] (ParserState (Tok n)) Identity (Binder n)
Parse a binder.
pIndex :: Eq (Tok n) => ParsecT [Token (Tok n)] (ParserState (Tok n)) Identity Int
Parse a deBruijn index.
pName :: Eq (Tok n) => ParsecT [Token (Tok n)] (ParserState (Tok n)) Identity n
Parse a constructor or variable name.