two versions of semantics (the Logic version incomplete)

This commit is contained in:
aarne
2007-10-19 22:12:30 +00:00
parent 3edf2e8e97
commit 2fb6c59444
9 changed files with 416 additions and 14 deletions

View File

@@ -0,0 +1,20 @@
module Main where
import GSyntax
import AnswerBase
import GF.GFCC.API
main :: IO ()
main = do
gr <- file2grammar "base.gfcc"
loop gr
loop :: MultiGrammar -> IO ()
loop gr = do
s <- getLine
let t:_ = parse gr "BaseEng" "S" s
putStrLn $ showTree t
let p = iS $ fg t
putStrLn $ show p
loop gr