mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-11 12:12:51 -06:00
bud fix in reading gfc without gfr
This commit is contained in:
@@ -215,9 +215,13 @@ compileOne opts env@((_,srcgr,cancgr0,eenv),_) file = do
|
|||||||
|
|
||||||
--- hack fix to a bug in ReadFiles with reused concrete
|
--- hack fix to a bug in ReadFiles with reused concrete
|
||||||
|
|
||||||
b <- ioeIO $ doesFileExist file
|
let modu = unsuffixFile file
|
||||||
if not b
|
b1 <- ioeIO $ doesFileExist file
|
||||||
then compileOne opts env $ gfcFile $ unsuffixFile file
|
b2 <- ioeIO $ doesFileExist $ gfrFile modu
|
||||||
|
if not b1
|
||||||
|
then if b2
|
||||||
|
then compileOne opts env $ gfrFile $ modu
|
||||||
|
else compileOne opts env $ gfcFile $ modu
|
||||||
else do
|
else do
|
||||||
|
|
||||||
sm0 <- putpOpt ("- parsing" +++ file) ("- compiling" +++ file ++ "... ") $
|
sm0 <- putpOpt ("- parsing" +++ file) ("- compiling" +++ file ++ "... ") $
|
||||||
|
|||||||
Reference in New Issue
Block a user