blob: 5d8303579aa2e8f54378a2b1e1ef0ff01f097116 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
module DSL where
import DSL.BaseParsers (parse) -- for testing
import DSL.Parsing
import DSL.Interpretation
interpretFromString :: String -> IO ()
interpretFromString = either putStrLn interpret . stringToProgram
interpretFromFile :: FilePath -> IO ()
interpretFromFile path = readFile path >>= interpretFromString
|