purescript-0.12.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.Parser.Lexer

Description

The first step in the parsing process - turns source code into a list of lexemes

Synopsis

Documentation

data PositionedToken Source #

Constructors

PositionedToken 

Fields

data Token Source #

Instances

Eq Token Source # 

Methods

(==) :: Token -> Token -> Bool #

(/=) :: Token -> Token -> Bool #

Ord Token Source # 

Methods

compare :: Token -> Token -> Ordering #

(<) :: Token -> Token -> Bool #

(<=) :: Token -> Token -> Bool #

(>) :: Token -> Token -> Bool #

(>=) :: Token -> Token -> Bool #

max :: Token -> Token -> Token #

min :: Token -> Token -> Token #

Show Token Source # 

Methods

showsPrec :: Int -> Token -> ShowS #

show :: Token -> String #

showList :: [Token] -> ShowS #

lexLenient :: FilePath -> Text -> Either ParseError [PositionedToken] Source #

Lexes the given file, and on encountering a parse error, returns the progress made up to that point, instead of returning an error

semiSep :: TokenParser a -> TokenParser [a] Source #

Parse zero or more values separated by semicolons

semiSep1 :: TokenParser a -> TokenParser [a] Source #

Parse one or more values separated by semicolons

commaSep :: TokenParser a -> TokenParser [a] Source #

Parse zero or more values separated by commas

commaSep1 :: TokenParser a -> TokenParser [a] Source #

Parse one or more values separated by commas

reservedPsNames :: [Text] Source #

A list of purescript reserved identifiers

isSymbolChar :: Char -> Bool Source #

The characters allowed for use in operators

isUnquotedKey :: Text -> Bool Source #

Strings allowed to be left unquoted in a record key