mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 03:09:33 -06:00
make it possible to control the initial NGF size
This commit is contained in:
@@ -31,7 +31,7 @@ importGrammar readNGF pgf0 opts _
|
||||
putStr ("(Boot image "++fname++") ")
|
||||
return (Just fname)
|
||||
else do return Nothing
|
||||
pgf <- newNGF name mb_ngf_file
|
||||
pgf <- newNGF name mb_ngf_file 0
|
||||
return (Just pgf)
|
||||
importGrammar readNGF pgf0 _ [] = return pgf0
|
||||
importGrammar readNGF pgf0 opts fs
|
||||
|
||||
@@ -45,9 +45,9 @@ grammar2PGF opts mb_pgf gr am probs = do
|
||||
then removeFile fname
|
||||
else return ()
|
||||
putStr ("(Boot image "++fname++") ")
|
||||
newNGF abs_name (Just fname)
|
||||
newNGF abs_name (Just fname) 0
|
||||
| otherwise ->
|
||||
do newNGF abs_name Nothing
|
||||
do newNGF abs_name Nothing 0
|
||||
|
||||
pgf <- modifyPGF pgf $ do
|
||||
sequence_ [setAbstractFlag name value | (name,value) <- optionsPGF aflags]
|
||||
|
||||
Reference in New Issue
Block a user