two binaries
This commit is contained in:
parent
98c0f85e6a
commit
aa3f878413
@ -3,4 +3,4 @@ module Main where
|
|||||||
import Lib
|
import Lib
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = getLine >>= go
|
main = interact go
|
||||||
|
Binary file not shown.
BIN
parser-sandbox-exe.exe
Normal file
BIN
parser-sandbox-exe.exe
Normal file
Binary file not shown.
@ -92,10 +92,8 @@ checkTautology s = all ((==True) . fst ) $ runStateT (tautology s) []
|
|||||||
go s = do
|
go s = do
|
||||||
let s' = parse sentence "" s
|
let s' = parse sentence "" s
|
||||||
case s' of
|
case s' of
|
||||||
Left x -> print x
|
Left x -> show x
|
||||||
Right x -> do
|
Right x -> show x ++ "\n" ++ (show ( checkTautology x))
|
||||||
print x
|
|
||||||
print $ checkTautology x
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user