Module

Prospero.Parser.Monad

Package
purescript-prospero
Repository
rowtype-yoga/purescript-prospero

#ParseState Source

type ParseState = { length :: Int, position :: Int, tokens :: Array SourceToken }

#ParseError Source

type ParseError = { message :: String, position :: SourcePos }

#runParser Source

#take Source

take :: forall a. (SourceToken -> Either String a) -> Parser a

#fail Source

fail :: forall a. String -> Parser a

#try Source

try :: forall a. Parser a -> Parser a

#lookAhead Source

lookAhead :: forall a. Parser a -> Parser a

#many Source

many :: forall a. Parser a -> Parser (Array a)

#many1 Source

many1 :: forall a. Parser a -> Parser (Array a)

#optional Source

optional :: forall a. Parser a -> Parser (Maybe a)