hwhile-0.1.1.0: An implementation of Neil D. Jones' While language
Lexer
newtype Token Source #
Constructors
Instances
Methods
(==) :: Token -> Token -> Bool #
(/=) :: Token -> Token -> Bool #
showsPrec :: Int -> Token -> ShowS #
show :: Token -> String #
showList :: [Token] -> ShowS #
data TokenType Source #
(==) :: TokenType -> TokenType -> Bool #
(/=) :: TokenType -> TokenType -> Bool #
showsPrec :: Int -> TokenType -> ShowS #
show :: TokenType -> String #
showList :: [TokenType] -> ShowS #
tkLineNo :: Token -> Int Source #
tkCharNo :: Token -> Int Source #
tkPath :: Token -> FilePath Source #
tkVarName :: Token -> String Source #
scan :: String -> FilePath -> [Token] Source #
prettyPrintToken :: Token -> String Source #