diff options
Diffstat (limited to 'src/GF/Canon/GFCC/RunGFCC.hs')
| -rw-r--r-- | src/GF/Canon/GFCC/RunGFCC.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GF/Canon/GFCC/RunGFCC.hs b/src/GF/Canon/GFCC/RunGFCC.hs index 704b6ced8..a013d7ccb 100644 --- a/src/GF/Canon/GFCC/RunGFCC.hs +++ b/src/GF/Canon/GFCC/RunGFCC.hs @@ -33,6 +33,10 @@ treat grammar s = case words s of "gr":cat:n:_ -> do gen <- newStdGen mapM_ prlins $ take (read n) $ generateRandom gen grammar (CId cat) + "p":cat:ws -> do + case parse grammar (CId cat) ws of + t:_ -> prlins t + _ -> putStrLn "no parse found" _ -> lins $ readExp s where lins t = mapM_ (lin t) $ cncnames grammar |
