| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
UVMHS.Lib.Parser.Core
Documentation
Constructors
| ParserEnv | |
Fields | |
parserEnv₀ :: 𝕊 -> ParserEnv Source #
type ParserOut (t :: k) = AddNull (ParserError t) Source #
data ParserState t Source #
Constructors
| ParserState | |
Fields | |
Instances
| (Pretty (WindowR Doc Doc), Pretty ParserContext, Pretty (WindowL Doc Doc), Pretty (AddBT Loc), Pretty (𝑆 (ParserToken t))) => Pretty (ParserState t) Source # | |
Defined in UVMHS.Lib.Parser.Core Methods pretty :: ParserState t -> Doc Source # | |
| MonadState (ParserState t) (Parser t) Source # | |
Defined in UVMHS.Lib.Parser.Core | |
parserStateInputL :: ParserState t ⟢ 𝑆 (ParserToken t) Source #
parserState₀ :: 𝑆 (ParserToken t) -> ParserState t Source #
Constructors
| Parser | |
Instances
| MonadFail (Parser t :: Type -> Type) Source # | |
| MonadReader ParserEnv (Parser t) Source # | |
| Bind (Parser t) Source # | |
| Functor (Parser t) Source # | |
| Monad (Parser t) Source # | |
Defined in UVMHS.Lib.Parser.Core | |
| Return (Parser t) Source # | |
Defined in UVMHS.Lib.Parser.Core | |
| MonadState (ParserState t) (Parser t) Source # | |
Defined in UVMHS.Lib.Parser.Core | |
| MonadWriter (ParserOut t) (Parser t) Source # | |
runParser :: ParserEnv -> ParserState t -> Parser t a -> ParserOut t ∧ 𝑂 (ParserState t ∧ a) Source #
pNewExpressionContext :: Parser t a -> Parser t a Source #
pWithContext :: Parser t a -> Parser t (((WindowR Doc Doc ∧ ParserContext) ∧ WindowL Doc Doc) ∧ a) Source #
pPluck :: Parser t (ParserToken t) Source #
pRecord :: ParserToken t -> Parser t () Source #
pSatisfies :: (t -> 𝔹) -> Parser t t Source #