scanner finished

This commit is contained in:
Oleg Sobolev 2025-12-24 18:06:03 +03:00
parent bcfdc496ed
commit a076e83af2
2 changed files with 127 additions and 38 deletions

View file

@ -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