Module
PureScript.CST.Parser.Monad
- Package
- purescript-language-cst-parser
- Repository
- natefaubion/purescript-language-cst-parser
#Parser Source
newtype Parser a
Constructors
Parser (forall r. Fn4 ParserState ((Unit -> r) -> r) (Fn2 ParserState PositionedError r) (Fn2 ParserState a r) r)
Instances
#ParserState Source
type ParserState = { consumed :: Boolean, errors :: Array PositionedError, stream :: TokenStream }
#PositionedError Source
type PositionedError = { error :: ParseError, position :: SourcePos }
#fromParserResult Source
fromParserResult :: forall a. ParserResult a -> Either PositionedError (Tuple a (Array PositionedError))
#runParser Source
runParser :: forall a. TokenStream -> Parser a -> Either PositionedError (Tuple a (Array PositionedError))
#runParser' Source
runParser' :: forall a. ParserState -> Parser a -> ParserResult a
#take Source
take :: forall a. (SourceToken -> Either ParseError a) -> Parser a
#fail Source
fail :: forall a. PositionedError -> Parser a
#recover Source
recover :: forall a. (PositionedError -> TokenStream -> Maybe (Tuple a TokenStream)) -> Parser a -> Parser a
- Modules
- PureScript.
CST - PureScript.
CST. Errors - PureScript.
CST. Layout - PureScript.
CST. Lexer - PureScript.
CST. ModuleGraph - PureScript.
CST. Parser - PureScript.
CST. Parser. Monad - PureScript.
CST. Print - PureScript.
CST. Range - PureScript.
CST. Range. TokenList - PureScript.
CST. TokenStream - PureScript.
CST. Traversal - PureScript.
CST. Types