mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-03 00:02:50 -06:00
error msg in update
This commit is contained in:
@@ -481,7 +481,7 @@ Source modules:
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
<a href=example/AnimalsFre.gf>AnimalsFre</a>
|
<a href=example/AnimalsFre.gf>AnimalsFre</a> (does not compile yet)
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
@@ -502,7 +502,7 @@ which is almost one thousand times smaller and faster to load.
|
|||||||
Just issue the following GF commands
|
Just issue the following GF commands
|
||||||
<pre>
|
<pre>
|
||||||
i AnimalsEng.gf
|
i AnimalsEng.gf
|
||||||
i AnimalsFre.gf
|
-- i AnimalsFre.gf -- does not compile yet
|
||||||
i AnimalsSwe.gf
|
i AnimalsSwe.gf
|
||||||
pm | wf animals.gfcm
|
pm | wf animals.gfcm
|
||||||
</pre>
|
</pre>
|
||||||
|
|||||||
@@ -46,8 +46,9 @@ lin
|
|||||||
UseV2 = transAsVerb ;
|
UseV2 = transAsVerb ;
|
||||||
|
|
||||||
-- Formation of infinitival phrases.
|
-- Formation of infinitival phrases.
|
||||||
{- ----
|
|
||||||
UseCl tp cl = {s = \\o => tp.s ++ cl.s ! tp.b ! ClFinite tp.t tp.a o} ;
|
UseCl tp cl = {s = \\o => tp.s ++ cl.s ! tp.b ! ClFinite tp.t tp.a o} ;
|
||||||
|
{- ----
|
||||||
UseRCl tp cl =
|
UseRCl tp cl =
|
||||||
{s = \\gn,p => tp.s ++ cl.s ! tp.b ! VFinite tp.t tp.a ! gn ! p} ;
|
{s = \\gn,p => tp.s ++ cl.s ! tp.b ! VFinite tp.t tp.a ! gn ! p} ;
|
||||||
UseQCl tp cl = {s = \\q => tp.s ++ cl.s ! tp.b ! VFinite tp.t tp.a ! q} ;
|
UseQCl tp cl = {s = \\q => tp.s ++ cl.s ! tp.b ! VFinite tp.t tp.a ! q} ;
|
||||||
|
|||||||
@@ -50,8 +50,6 @@ incomplete concrete VerbphraseRomance of Verbphrase = CategoriesRomance **
|
|||||||
|
|
||||||
---- PredProgVP = progressiveVerbPhrase ;
|
---- PredProgVP = progressiveVerbPhrase ;
|
||||||
|
|
||||||
---- SPredProgVP = progressiveClause ;
|
|
||||||
|
|
||||||
-- Use VPs
|
-- Use VPs
|
||||||
|
|
||||||
PredVP = predVerbGroupClause ;
|
PredVP = predVerbGroupClause ;
|
||||||
|
|||||||
@@ -139,7 +139,9 @@ updateShellState opts mcnc sh ((_,sgr,gr),rts) = do
|
|||||||
Just a -> do
|
Just a -> do
|
||||||
-- test that abstract is compatible --- unsafe exception for old?
|
-- test that abstract is compatible --- unsafe exception for old?
|
||||||
--- if True oElem showOld opts then return () else
|
--- if True oElem showOld opts then return () else
|
||||||
testErr (maybe True (a==) a') ("expected abstract" +++ P.prt a)
|
case a' of
|
||||||
|
Nothing -> return ()
|
||||||
|
Just b -> testErr (a==b) ("expected abstract" +++ P.prt a +++ "but found " +++ P.prt b)
|
||||||
return $ Just a
|
return $ Just a
|
||||||
_ -> return a'
|
_ -> return a'
|
||||||
let cgr = filterAbstracts abstr0 cgr0
|
let cgr = filterAbstracts abstr0 cgr0
|
||||||
@@ -185,6 +187,20 @@ prShellStateInfo sh = unlines [
|
|||||||
"global options : " +++ prOpts (gloptions sh)
|
"global options : " +++ prOpts (gloptions sh)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{- ---- should be called from IOGrammar *before* compiling
|
||||||
|
testSameAbstract :: ShellState -> Maybe Ident -> Err (Maybe Ident)
|
||||||
|
testSameAbstract sh mcnc = do
|
||||||
|
abstr0 <- case abstract sh of
|
||||||
|
Just a -> do
|
||||||
|
-- test that abstract is compatible --- unsafe exception for old?
|
||||||
|
--- if True oElem showOld opts then return () else
|
||||||
|
case a' of
|
||||||
|
Nothing -> return ()
|
||||||
|
Just b -> testErr (a==b) ("expected abstract" +++ P.prt a +++ "but found " +++ P.prt b)
|
||||||
|
return $ Just a
|
||||||
|
_ -> return a'
|
||||||
|
-}
|
||||||
|
|
||||||
abstractName sh = maybe "(none)" P.prt (abstract sh)
|
abstractName sh = maybe "(none)" P.prt (abstract sh)
|
||||||
|
|
||||||
-- | throw away those abstracts that are not needed --- could be more aggressive
|
-- | throw away those abstracts that are not needed --- could be more aggressive
|
||||||
|
|||||||
Reference in New Issue
Block a user