Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
parserEnv₀ :: 𝕊 -> ParserEnv Source #
type ParserOut t = AddNull (ParserError t) Source #
data ParserState t Source #
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 pretty :: ParserState t -> Doc Source # | |
MonadState (ParserState t) (Parser t) Source # | |
Defined in UVMHS.Lib.Parser.Core get :: Parser t (ParserState t) Source # put :: ParserState t -> Parser t () Source # |
parserStateInputL :: forall (t :: Type). (⟢) (ParserState t) (𝑆 (ParserToken t)) Source #
parserStateEndPosL :: forall (t :: Type). (⟢) (ParserState t) (AddBT Loc) Source #
parserStateSuffixL :: forall (t :: Type). (⟢) (ParserState t) (WindowL Doc Doc) Source #
parserStateContextL :: forall (t :: Type). (⟢) (ParserState t) ParserContext Source #
parserStateSkipContextL :: forall (t :: Type). (⟢) (ParserState t) ParserContext Source #
parserStatePrefixL :: forall (t :: Type). (⟢) (ParserState t) (WindowR Doc Doc) Source #
parserState₀ :: 𝑆 (ParserToken t) -> ParserState t Source #
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 get :: Parser t (ParserState t) Source # put :: ParserState t -> Parser t () Source # | |
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 #