diff options
Diffstat (limited to 'Main.hs')
-rw-r--r-- | Main.hs | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +module Main where + +import System.Exit (die) +import Text.Parsec + +-- import Expr +import Parser +import Normalise + + +main :: IO () +main = do + s <- getContents + + expr <- case parse parseExpr "<stdin>" s of + Left err -> die (show err) + Right expr -> return expr + + print expr + + print (normalise expr) |