two binaries
This commit is contained in:
parent
98c0f85e6a
commit
aa3f878413
@ -3,4 +3,4 @@ module Main where
|
||||
import Lib
|
||||
|
||||
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
|
||||
let s' = parse sentence "" s
|
||||
case s' of
|
||||
Left x -> print x
|
||||
Right x -> do
|
||||
print x
|
||||
print $ checkTautology x
|
||||
Left x -> show x
|
||||
Right x -> show x ++ "\n" ++ (show ( checkTautology x))
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user