From 67aa6e7a81d8d22ff8409ed59fab7bacde2312a6 Mon Sep 17 00:00:00 2001 From: peb Date: Tue, 29 Mar 2005 10:17:53 +0000 Subject: "Committed_by_peb" --- src/GF/Parsing/ConvertGFCtoMCFG/Strict.hs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/GF/Parsing/ConvertGFCtoMCFG/Strict.hs') diff --git a/src/GF/Parsing/ConvertGFCtoMCFG/Strict.hs b/src/GF/Parsing/ConvertGFCtoMCFG/Strict.hs index de3ad7d5f..6e2e62cdd 100644 --- a/src/GF/Parsing/ConvertGFCtoMCFG/Strict.hs +++ b/src/GF/Parsing/ConvertGFCtoMCFG/Strict.hs @@ -5,9 +5,9 @@ -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date: 2005/03/21 22:31:54 $ +-- > CVS $Date: 2005/03/29 11:17:55 $ -- > CVS $Author: peb $ --- > CVS $Revision: 1.1 $ +-- > CVS $Revision: 1.2 $ -- -- Converting GFC grammars to MCFG grammars, nondeterministically. -- @@ -20,8 +20,8 @@ module GF.Parsing.ConvertGFCtoMCFG.Strict (convertGrammar) where -import Tracing -import IOExts (unsafePerformIO) +import GF.System.Tracing +-- import IOExts (unsafePerformIO) import GF.Printing.PrintParser import GF.Printing.PrintSimplifiedTerm -- import PrintGFC @@ -113,7 +113,7 @@ enumerateArg (A cat nr) = do env <- readEnv substitutePaths :: GrammarEnv -> [STerm] -> Term -> STerm substitutePaths env arguments trm = subst trm where subst (con `Con` terms) = con `SCon` map subst terms - subst (R record) = SRec [ (lbl, subst term) | lbl `Ass` term <- record ] + subst (R record) = SRec [ (lbl, subst term) | lbl `Ass` term <- record ] subst (term `P` lbl) = subst term +. lbl subst (T ptype table) = STbl [ (pattern2sterm pat, subst term) | pats `Cas` term <- table, pat <- pats ] -- cgit v1.2.3