mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-27 11:48:55 -06:00
romance ImpPlP1 corrected
This commit is contained in:
@@ -237,7 +237,8 @@ updateShellState opts ign mcnc sh ((_,sgr,gr),rts) = do
|
|||||||
concr0 = ifNull Nothing (return . head) concrs
|
concr0 = ifNull Nothing (return . head) concrs
|
||||||
notInrts f = notElem f $ map fst rts
|
notInrts f = notElem f $ map fst rts
|
||||||
subcgr = unSubelimCanon cgr
|
subcgr = unSubelimCanon cgr
|
||||||
cf's0 <- if oElem noCF opts
|
cf's0 <- if (not (oElem (iOpt "docf") opts) && -- cf only built with -docf
|
||||||
|
(oElem noCF opts || not (hasHOAS cgr))) -- or HOAS, if not -nocf
|
||||||
then return $ map snd $ cfs sh
|
then return $ map snd $ cfs sh
|
||||||
else mapM (canon2cf opts ign subcgr) newConcrs
|
else mapM (canon2cf opts ign subcgr) newConcrs
|
||||||
let cf's = zip newConcrs cf's0 ++ filter toRetain (cfs sh)
|
let cf's = zip newConcrs cf's0 ++ filter toRetain (cfs sh)
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ i, import: i File
|
|||||||
-src from source: ignore precompiled gfc and gfr files
|
-src from source: ignore precompiled gfc and gfr files
|
||||||
-gfc from gfc: use compiled modules whenever they exist
|
-gfc from gfc: use compiled modules whenever they exist
|
||||||
-retain retain operations: read resource modules (needed in comm cc)
|
-retain retain operations: read resource modules (needed in comm cc)
|
||||||
-nocf don't build context-free grammar (thus no parser)
|
-nocf don't build old-style context-free grammar (default without HOAS)
|
||||||
|
-docf do build old-style context-free grammar (default with HOAS)
|
||||||
-nocheckcirc don't eliminate circular rules from CF
|
-nocheckcirc don't eliminate circular rules from CF
|
||||||
-cflexer build an optimized parser with separate lexer trie
|
-cflexer build an optimized parser with separate lexer trie
|
||||||
-noemit do not emit code (default with old grammar format)
|
-noemit do not emit code (default with old grammar format)
|
||||||
|
|||||||
Reference in New Issue
Block a user