generation command gt n

This commit is contained in:
aarne
2004-04-30 15:18:38 +00:00
parent 926ac1b1e5
commit b67b5e1d5f
7 changed files with 122 additions and 6 deletions

View File

@@ -54,6 +54,7 @@ data Command =
| CParse
| CTranslate Language Language
| CGenerateRandom Int
| CGenerateTrees Int
| CPutTerm
| CWrapTerm Ident
| CMorphoAnalyse
@@ -187,6 +188,8 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = case comm of
_ -> do
ts <- randomTreesIO opts gro (optIntOrN opts flagNumber n)
returnArg (ATrms ts) sa
CGenerateTrees n -> returnArg (ATrms $ generateTrees opts gro n) sa
CPutTerm -> changeArg (opTT2CommandArg (optTermCommand opts gro) . s2t) sa
----- CWrapTerm f -> changeArg (opTT2CommandArg (return . wrapByFun opts gro f)) sa