forked from GitHub/gf-core
GrammarToPGF now looks only at the top modules for the PGF flags
This commit is contained in:
@@ -45,8 +45,7 @@ mkCanon2pgf opts gr am = do
|
|||||||
|
|
||||||
mkAbstr am = return (i2i am, D.Abstr flags funs cats bcode)
|
mkAbstr am = return (i2i am, D.Abstr flags funs cats bcode)
|
||||||
where
|
where
|
||||||
aflags =
|
aflags = err (const noOptions) mflags (lookupModule gr am)
|
||||||
concatOptions (reverse [mflags mo | (_,mo) <- modules gr, isModAbs mo])
|
|
||||||
|
|
||||||
(adefs,bcode) =
|
(adefs,bcode) =
|
||||||
generateByteCode $
|
generateByteCode $
|
||||||
@@ -65,7 +64,7 @@ mkCanon2pgf opts gr am = do
|
|||||||
[(0,i2i f) | ((m,f),AbsFun (Just (L _ ty)) _ _ (Just True),_) <- adefs, snd (GM.valCat ty) == cat]
|
[(0,i2i f) | ((m,f),AbsFun (Just (L _ ty)) _ _ (Just True),_) <- adefs, snd (GM.valCat ty) == cat]
|
||||||
|
|
||||||
mkConcr cm = do
|
mkConcr cm = do
|
||||||
let cflags = concatOptions [mflags mo | (i,mo) <- modules gr, isModCnc mo]
|
let cflags = err (const noOptions) mflags (lookupModule gr cm)
|
||||||
|
|
||||||
(seqs,cdefs) <- addMissingPMCFGs
|
(seqs,cdefs) <- addMissingPMCFGs
|
||||||
Map.empty
|
Map.empty
|
||||||
|
|||||||
Reference in New Issue
Block a user