scanner first steps
This commit is contained in:
parent
fcf2951fa7
commit
bcfdc496ed
4 changed files with 130 additions and 3 deletions
|
|
@ -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!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue