scanner finished
This commit is contained in:
parent
bcfdc496ed
commit
a076e83af2
2 changed files with 127 additions and 38 deletions
|
|
@ -4,7 +4,7 @@ import Lox.Scanner
|
|||
|
||||
run :: String -> IO ()
|
||||
run source = mapM_ print tokens
|
||||
where tokens = scanTokens source
|
||||
where tokens = scanTokensFromSource source
|
||||
|
||||
main :: IO ()
|
||||
main = putStrLn "Hello, Haskell!"
|
||||
main = getLine >>= run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue