diff options
| author | krasimir <krasimir@chalmers.se> | 2009-09-20 11:43:41 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2009-09-20 11:43:41 +0000 |
| commit | b1a51f46f5d137ab4d65a4381b349af3291a944d (patch) | |
| tree | ce1df7a103ba74a9c8a7eedbf2260bde37736166 /src/GF/Command | |
| parent | d09371280d5b28d85acce7b7d899c21bc4e11b32 (diff) | |
change the data types and the syntax in PGF to match the new syntax for implict arguments
Diffstat (limited to 'src/GF/Command')
| -rw-r--r-- | src/GF/Command/Interpreter.hs | 2 | ||||
| -rw-r--r-- | src/GF/Command/TreeOperations.hs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/GF/Command/Interpreter.hs b/src/GF/Command/Interpreter.hs index 17ff6aa29..ff84da8a3 100644 --- a/src/GF/Command/Interpreter.hs +++ b/src/GF/Command/Interpreter.hs @@ -74,7 +74,7 @@ appCommand xs c@(Command i os arg) = case arg of _ -> c where app e = case e of - EAbs x e -> EAbs x (app e) + EAbs b x e -> EAbs b x (app e) EApp e1 e2 -> EApp (app e1) (app e2) ELit l -> ELit l EMeta i -> xs !! i diff --git a/src/GF/Command/TreeOperations.hs b/src/GF/Command/TreeOperations.hs index 73cef05b2..941f03782 100644 --- a/src/GF/Command/TreeOperations.hs +++ b/src/GF/Command/TreeOperations.hs @@ -27,6 +27,6 @@ allTreeOps pgf = [ smallest :: [Expr] -> [Expr] smallest = sortBy (\t u -> compare (size t) (size u)) where size t = case t of - EAbs _ e -> size e + 1 + EAbs _ _ e -> size e + 1 EApp e1 e2 -> size e1 + size e2 + 1 _ -> 1 |
