From bc6323df4cfaf1ff354acf294a5f2a55a4a6226a Mon Sep 17 00:00:00 2001 From: krasimir Date: Tue, 26 Jan 2010 14:15:37 +0000 Subject: [PATCH] fix the PGF generation when it is used from the shell --- src/compiler/GF/Compile/GrammarToPGF.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/GF/Compile/GrammarToPGF.hs b/src/compiler/GF/Compile/GrammarToPGF.hs index d272404e3..68db6f118 100644 --- a/src/compiler/GF/Compile/GrammarToPGF.hs +++ b/src/compiler/GF/Compile/GrammarToPGF.hs @@ -52,7 +52,7 @@ canon2pgf opts pars cgr@(M.MGrammar ((a,abm):cms)) = do then putStrLn (render (vcat (map (ppModule Qualified) (M.modules cgr)))) else return () cncs <- sequence [mkConcr lang (i2i lang) mo | (lang,mo) <- cms] - return (D.PGF an cns gflags abs (Map.fromList cncs)) + return $ updateProductionIndices (D.PGF an cns gflags abs (Map.fromList cncs)) where -- abstract an = (i2i a)