summaryrefslogtreecommitdiff
path: root/src/GF/Command/TreeOperations.hs
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-10-13 16:41:21 +0000
committeraarne <aarne@cs.chalmers.se>2008-10-13 16:41:21 +0000
commit54f8fd9ec1930b84ef911f98406202c1e5183ade (patch)
tree6da6b155d57a2f9d162626f88ed521eb892a24ca /src/GF/Command/TreeOperations.hs
parentfbc72e32304399d7ca01a2a36fa81f81fa244879 (diff)
added a paraphrase method applying def's in both directions, in subtrees, and step by step; doesn't work properly yet
Diffstat (limited to 'src/GF/Command/TreeOperations.hs')
-rw-r--r--src/GF/Command/TreeOperations.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GF/Command/TreeOperations.hs b/src/GF/Command/TreeOperations.hs
index 0ff6ac682..da7399615 100644
--- a/src/GF/Command/TreeOperations.hs
+++ b/src/GF/Command/TreeOperations.hs
@@ -5,7 +5,7 @@ module GF.Command.TreeOperations (
) where
import GF.Compile.TypeCheck
-import PGF (compute)
+import PGF (compute,paraphrase)
-- for conversions
import PGF.Data
@@ -24,6 +24,8 @@ allTreeOps :: PGF -> [(String,(String,TreeOp))]
allTreeOps pgf = [
("compute",("compute by using semantic definitions (def)",
map (compute pgf))),
+ ("paraphrase",("paraphrase by using semantic definitions (def)",
+ concatMap (paraphrase pgf))),
("smallest",("sort trees from smallest to largest, in number of nodes",
smallest)),
("typecheck",("type check and solve metavariables; reject if incorrect",