help for gt

This commit is contained in:
aarne
2006-08-15 20:28:37 +00:00
parent 28245481a7
commit 6bf419c50c
3 changed files with 10 additions and 3 deletions

View File

@@ -50,8 +50,9 @@ generateTrees opts gr cat n mn mt = map str2tr $ generate gr' ifm cat' n mn mt'
ifm = oElem showOld opts
generateAll :: Options -> (Exp -> IO ()) -> GFCGrammar -> Cat -> IO ()
generateAll opts io gr cat = mapM_ (io . str2tr) $ gen cat'
generateAll opts io gr cat = mapM_ (io . str2tr) $ num $ gen cat'
where
num = optIntOrAll opts flagNumber
gr' = gr2sgr opts emptyProbs gr
cat' = prt $ snd cat
gen c = generate gr' False c 10 Nothing Nothing