From 9568d7a844ba6a1872a8e8f6ef002860057e62ab Mon Sep 17 00:00:00 2001 From: peb Date: Fri, 18 Feb 2005 18:21:06 +0000 Subject: "Committed_by_peb" --- src/GF/Compile/PrOld.hs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/GF/Compile/PrOld.hs') diff --git a/src/GF/Compile/PrOld.hs b/src/GF/Compile/PrOld.hs index cba3eb536..8c0132fe7 100644 --- a/src/GF/Compile/PrOld.hs +++ b/src/GF/Compile/PrOld.hs @@ -1,13 +1,13 @@ ---------------------------------------------------------------------- -- | --- Module : (Module) --- Maintainer : (Maintainer) +-- Module : PrOld +-- Maintainer : GF -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date $ --- > CVS $Author $ --- > CVS $Revision $ +-- > CVS $Date: 2005/02/18 19:21:09 $ +-- > CVS $Author: peb $ +-- > CVS $Revision: 1.7 $ -- -- a hack to print gf2 into gf1 readable files -- Works only for canonical grammars, printed into GFC. Otherwise we would have @@ -15,7 +15,7 @@ -- --- printnames are not preserved, nor are lindefs ----------------------------------------------------------------------------- -module PrOld where +module PrOld (printGrammarOld, stripTerm) where import PrGrammar import CanonToGrammar @@ -59,6 +59,7 @@ stripInfo (c,i) = case i of stripContext co = [(x, stripTerm t) | (x,t) <- co] +stripTerm :: Term -> Term stripTerm t = case t of Q _ c -> Vr c QC _ c -> Vr c -- cgit v1.2.3