diff options
| author | aarne <aarne@chalmers.se> | 2009-10-19 12:47:31 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2009-10-19 12:47:31 +0000 |
| commit | dd57104d1cb6e5429a20618de835d169da126f20 (patch) | |
| tree | 5afe5ac53ec7270de7b8fd860819b1ae473b6bcb /src | |
| parent | 4cacaf6097036b93a84eb1cd8aea668f830fe2ff (diff) | |
one missing case in dep trees
Diffstat (limited to 'src')
| -rw-r--r-- | src/PGF/VisualizeTree.hs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/PGF/VisualizeTree.hs b/src/PGF/VisualizeTree.hs index 63e144d57..56129c5e2 100644 --- a/src/PGF/VisualizeTree.hs +++ b/src/PGF/VisualizeTree.hs @@ -90,6 +90,7 @@ dependencyTree ms pgf lang exp = prGraph True lin2dep where hx = headArg (init x) tr x headArg x0 tr x = case (tr,x) of + (Fun f [],[_]) -> x0 ---- ?? (Fun f ts,[_]) -> x0 ++ [length ts - 1] ---- TODO: head as other than last arg (Fun f ts,i:y) -> headArg x0 (ts !! i) y @@ -98,10 +99,6 @@ dependencyTree ms pgf lang exp = prGraph True lin2dep where (Fun f ts,[_]) -> showCId f ++ "#" ++ show (last (0:x)) ---- (Fun f ts,i:y) -> label (ts !! i) y x - - - - word x = if elem x sortedNodes then x else let x' = headArg x tr (x ++[0]) in if x' == x then [] else word x' |
