Scan
lexer :: (Token -> P a) -> P a Source #
data AlexPosn Source #
Constructors
Defined in ParseMonad
Methods
showsPrec :: Int -> AlexPosn -> ShowS #
show :: AlexPosn -> String #
showList :: [AlexPosn] -> ShowS #
(==) :: AlexPosn -> AlexPosn -> Bool #
(/=) :: AlexPosn -> AlexPosn -> Bool #
compare :: AlexPosn -> AlexPosn -> Ordering #
(<) :: AlexPosn -> AlexPosn -> Bool #
(<=) :: AlexPosn -> AlexPosn -> Bool #
(>) :: AlexPosn -> AlexPosn -> Bool #
(>=) :: AlexPosn -> AlexPosn -> Bool #
max :: AlexPosn -> AlexPosn -> AlexPosn #
min :: AlexPosn -> AlexPosn -> AlexPosn #
data Token Source #
Defined in Scan
showsPrec :: Int -> Token -> ShowS #
show :: Token -> String #
showList :: [Token] -> ShowS #
data Tkn Source #
showsPrec :: Int -> Tkn -> ShowS #
show :: Tkn -> String #
showList :: [Tkn] -> ShowS #
tokPosn :: Token -> AlexPosn Source #
multiplicity :: Int Source #