mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
fix the PGF generation when it is used from the shell
This commit is contained in:
@@ -52,7 +52,7 @@ canon2pgf opts pars cgr@(M.MGrammar ((a,abm):cms)) = do
|
|||||||
then putStrLn (render (vcat (map (ppModule Qualified) (M.modules cgr))))
|
then putStrLn (render (vcat (map (ppModule Qualified) (M.modules cgr))))
|
||||||
else return ()
|
else return ()
|
||||||
cncs <- sequence [mkConcr lang (i2i lang) mo | (lang,mo) <- cms]
|
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
|
where
|
||||||
-- abstract
|
-- abstract
|
||||||
an = (i2i a)
|
an = (i2i a)
|
||||||
|
|||||||
Reference in New Issue
Block a user