started looking at gt -all, not ready

This commit is contained in:
aarne
2006-06-28 12:31:16 +00:00
parent 171e7dec50
commit 538ea8889e
2 changed files with 18 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ import qualified GF.Grammar.MMacros as MMacros
import qualified GF.Compile.GrammarToCanon as GrammarToCanon
import GF.Grammar.Values
import GF.UseGrammar.GetTree
import GF.UseGrammar.Generate (generateAll) ---- should be in API
import GF.UseGrammar.Treebank
import GF.Shell.ShellCommands
@@ -302,6 +303,10 @@ execC co@(comm, opts0) sa@(sh@(st,(h,_,_,_)),a) = checkOptions st co >> case com
_ -> do
ts <- randomTreesIO opts gro (optIntOrN opts flagNumber 1)
returnArg (ATrms ts) sa
CGenerateTrees | oElem showAll opts -> do
let cat = firstAbsCat opts gro
justOutput opts (generateAll opts (putStrLn . prt_) cgr cat) sa
CGenerateTrees -> do
let
a' = case a of