mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 00:02:50 -06:00
now we can load PGF files as precompiled modules
This commit is contained in:
@@ -57,6 +57,10 @@ extendModule cwd gr (name,m)
|
||||
extOne mo (n,cond) = do
|
||||
m0 <- lookupModule gr n
|
||||
|
||||
case m0 of
|
||||
ModPGF _ -> checkError ("cannot extend the precompiled module" <+> n)
|
||||
_ -> return ()
|
||||
|
||||
-- test that the module types match, and find out if the old is complete
|
||||
unless (sameMType (mtype m) (mtype mo))
|
||||
(checkError ("illegal extension type to module" <+> name))
|
||||
|
||||
Reference in New Issue
Block a user