1
0
forked from GitHub/gf-core

terms from rf

This commit is contained in:
aarne
2004-09-15 11:37:45 +00:00
parent 6c372cc599
commit 9bc8ffe4d1
2 changed files with 6 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of
let
a' = case a of
ASTrm _ -> s2t a
AString _ -> s2t a
_ -> a
case a' of
ATrms (trm:_) -> case tree2exp trm of
@@ -152,6 +153,7 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of
let
a' = case a of
ASTrm _ -> s2t a
AString _ -> s2t a
_ -> a
mt = case a' of
ATrms (tr:_) -> Just tr
@@ -159,7 +161,8 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of
returnArg (ATrms $ generateTrees opts gro mt) sa
CPutTerm -> changeArg (opTT2CommandArg (optTermCommand opts gro) . s2t) sa
CPutTerm -> changeArg (opTT2CommandArg (optTermCommand opts gro) . s2t) sa
---- CWrapTerm f -> changeArg (opTT2CommandArg (return . wrapByFun opts gro f)) sa
CMorphoAnalyse -> changeArg (AString . morphoAnalyse opts gro . prCommandArg) sa
CTestTokenizer -> changeArg (AString . optTokenizer opts gro . prCommandArg) sa
@@ -240,6 +243,7 @@ execC co@(comm, opts0) sa@((st,(h,_)),a) = checkOptions st co >> case comm of
s2t a = case a of
ASTrm s -> err AError (ATrms . return) $ string2treeErr gro s
AString s -> err AError (ATrms . return) $ string2treeErr gro s
_ -> a
warnDiscont os = err putStrLn id $ do

View File

@@ -30,6 +30,7 @@ data Command =
| CGenerateRandom
| CGenerateTrees
| CPutTerm
| CReadTerm
| CWrapTerm I.Ident
| CMorphoAnalyse
| CTestTokenizer