fix the PGF generation when it is used from the shell

This commit is contained in:
krasimir
2010-01-26 14:15:37 +00:00
parent b0a62aded5
commit 38b02bb64d

View File

@@ -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)