purescript-0.13.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.CST.Lexer

Synopsis

Documentation

lenient :: [LexResult] -> [LexResult] Source #

Stops at the first lexing error and replaces it with TokEof. Otherwise, the parser will fail when it attempts to draw a lookahead token.

lex :: Text -> [LexResult] Source #

Lexes according to root layout rules.

lexTopLevel :: Text -> [LexResult] Source #

Lexes according to top-level declaration context rules.

lexWithState :: LexState -> [LexResult] Source #

Lexes according to some LexState.

isUnquotedKey :: Text -> Bool Source #

Checks if some identifier is a valid unquoted key.