scanner first steps

This commit is contained in:
Oleg Sobolev 2025-12-09 17:23:54 +03:00
parent fcf2951fa7
commit bcfdc496ed
4 changed files with 130 additions and 3 deletions

View file

@ -1,4 +1,10 @@
module Main where
import Lox.Scanner
run :: String -> IO ()
run source = mapM_ print tokens
where tokens = scanTokens source
main :: IO ()
main = putStrLn "Hello, Haskell!"