summaryrefslogtreecommitdiff
path: root/examples/tutorial/semantics/Top.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorial/semantics/Top.hs')
-rw-r--r--examples/tutorial/semantics/Top.hs23
1 files changed, 0 insertions, 23 deletions
diff --git a/examples/tutorial/semantics/Top.hs b/examples/tutorial/semantics/Top.hs
deleted file mode 100644
index 51d5fbb99..000000000
--- a/examples/tutorial/semantics/Top.hs
+++ /dev/null
@@ -1,23 +0,0 @@
-module Main where
-
-import Base
-import SemBase
-import Logic
-import PGF
-
-main :: IO ()
-main = do
- gr <- file2grammar "Base.pgf"
- loop gr
-
-loop :: PGF -> IO ()
-loop gr = do
- s <- getLine
- let t:_ = parse gr "BaseEng" "S" s
- putStrLn $ showTree t
- let p = iS $ fg t
- putStrLn $ show p
- let v = valProp exModel [] p
- putStrLn $ show v
- loop gr
-