summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2010-01-26 14:15:37 +0000
committerkrasimir <krasimir@chalmers.se>2010-01-26 14:15:37 +0000
commitbc6323df4cfaf1ff354acf294a5f2a55a4a6226a (patch)
treead5f53736351880cc225009a0ffe81aeee0326e9 /src/compiler
parent9b362ff231efbd43ffb4f1c6285c41a34caf3777 (diff)
fix the PGF generation when it is used from the shell
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/GF/Compile/GrammarToPGF.hs2
1 files changed, 1 insertions, 1 deletions
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)