From 745f6ac83f207709127bbec22c3484ad06ec6907 Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 14 Dec 2007 07:31:53 +0000 Subject: restored CanonToGFCC as a wrapper of GFCC generation --- src/GF/Compile/ShellState.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/GF/Compile/ShellState.hs') diff --git a/src/GF/Compile/ShellState.hs b/src/GF/Compile/ShellState.hs index bbf443b35..ebb318608 100644 --- a/src/GF/Compile/ShellState.hs +++ b/src/GF/Compile/ShellState.hs @@ -19,7 +19,7 @@ import GF.Canon.GFC import GF.Canon.AbsGFC import GF.GFCC.Raw.AbsGFCCRaw(CId(CId)) --import GF.GFCC.DataGFCC(mkGFCC) -import GF.Canon.CanonToGFCC as C2GFCC +import GF.Canon.CanonToGFCC import GF.Grammar.Macros import GF.Grammar.MMacros @@ -264,12 +264,10 @@ updateShellState opts ign mcnc sh ((_,sgr,gr,eenv),rts) = do let fromGFC = snd . snd . Cnv.convertGFC opts (mcfgs, cfgs) = unzip $ map (curry fromGFC cgr) concrs fcfgs0 = [(IC id,g) | (CId id,g) <- - FCnv.convertGrammar (C2GFCC.mkCanon2gfccNoUTF8 cgr)] + FCnv.convertGrammar (canon2gfcc opts cgr)] ---- UTF8 fcfgs = [(c,g) | c <- concrs, Just g <- [lookup c fcfgs0]] pInfos = zipWith3 Prs.buildPInfo mcfgs (map snd fcfgs) cfgs - - let funs = funRulesOf cgr let cats = allCatsOf cgr let csi = [(c,(co, -- cgit v1.2.3