blob: 26836445f6f146c0978cd34b5e5cd6959e6b7378 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import PGF2
import qualified Data.Map as M
main :: IO ()
main = do
pgf <- readPGF "/Users/john/repositories/GF/contrib/foods/Foods.pgf"
let Just concr = M.lookup "FoodsEng" (languages pgf)
let pr = complete concr (startCat pgf) "" "th" Nothing
case pr of
ParseOk x -> print x
ParseFailed _ _ -> putStrLn "parse failed"
ParseIncomplete -> putStrLn "input incomplete"
|