diff options
| author | peb <unknown> | 2005-03-29 10:17:53 +0000 |
|---|---|---|
| committer | peb <unknown> | 2005-03-29 10:17:53 +0000 |
| commit | 67aa6e7a81d8d22ff8409ed59fab7bacde2312a6 (patch) | |
| tree | 1759bd8e1b314e2b98ffb0a6116e2a1fb515908d /src/GF/Parsing/ConvertGFCtoMCFG/Strict.hs | |
| parent | ccf6017b030fcefd5964979f1b6d55e722616ef7 (diff) | |
"Committed_by_peb"
Diffstat (limited to 'src/GF/Parsing/ConvertGFCtoMCFG/Strict.hs')
| -rw-r--r-- | src/GF/Parsing/ConvertGFCtoMCFG/Strict.hs | 10 |
1 files changed, 5 insertions, 5 deletions
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 ] |
