Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- lenient :: [LexResult] -> [LexResult]
- lex :: Text -> [LexResult]
- lexTopLevel :: Text -> [LexResult]
- lexWithState :: LexState -> [LexResult]
- isUnquotedKey :: Text -> Bool
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.
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.