mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-29 12:48:54 -06:00
sorting command list in Commands
This commit is contained in:
@@ -27,7 +27,7 @@ concrete VerbEng of Verb = CatEng ** open ResEng in {
|
|||||||
insertObj (\\a => infVP vv.isAux vp a) (predVV vv) **
|
insertObj (\\a => infVP vv.isAux vp a) (predVV vv) **
|
||||||
{c2 = vp.c2} ;
|
{c2 = vp.c2} ;
|
||||||
SlashV2VNP vv np vp =
|
SlashV2VNP vv np vp =
|
||||||
insertObjPre (\\_ => v.c2 ++ np.s ! Acc)
|
insertObjPre (\\_ => vv.c2 ++ np.s ! Acc)
|
||||||
(insertObjc (\\a => infVP vv.isAux vp a) (predVc vv)) **
|
(insertObjc (\\a => infVP vv.isAux vp a) (predVc vv)) **
|
||||||
{c2 = vp.c2} ;
|
{c2 = vp.c2} ;
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ incomplete concrete ExtraScand of ExtraScandAbs = CatScand **
|
|||||||
MkVPI vp = {
|
MkVPI vp = {
|
||||||
s = \\v,a => infVP vp a ---- no sup
|
s = \\v,a => infVP vp a ---- no sup
|
||||||
} ;
|
} ;
|
||||||
ConjVPI = conjunctTable2 VPIForm Agr ;
|
ConjVPI = conjunctDistrTable2 VPIForm Agr ;
|
||||||
ComplVPIVV vv vpi = insertObj (\\a => vv.c2 ++ vpi.s ! VPIInf ! a) (predV vv) ;
|
ComplVPIVV vv vpi = insertObj (\\a => vv.c2 ++ vpi.s ! VPIInf ! a) (predV vv) ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,11 +69,15 @@ instance DiffSpa of DiffRomance = open CommonRomance, PhonoSpa, BeschSpa, Prelud
|
|||||||
pdatp = case dat of {
|
pdatp = case dat of {
|
||||||
CPron ag an ap => <argPron ag an ap dative, ap,True> ;
|
CPron ag an ap => <argPron ag an ap dative, ap,True> ;
|
||||||
_ => <[],P2,False>
|
_ => <[],P2,False>
|
||||||
}
|
} ;
|
||||||
in case <<paccp.p2, pdatp.p2> : Person * Person> of {
|
defaultPronArg = <pdatp.p1 ++ paccp.p1, [], orB paccp.p3 pdatp.p3>
|
||||||
<P3,P3> => <"se" ++ paccp.p1, [],True> ;
|
in
|
||||||
_ => <pdatp.p1 ++ paccp.p1, [],orB paccp.p3 pdatp.p3>
|
case <<paccp.p2, pdatp.p2> : Person * Person> of {
|
||||||
} ;
|
<P3,P3> => <"se" ++ paccp.p1, [], True> ;
|
||||||
|
_ => defaultPronArg
|
||||||
|
} ;
|
||||||
|
---- 8/6/2008 efficiency problem in pgf generation: replace the case expr with
|
||||||
|
---- defaultPronArg ;
|
||||||
|
|
||||||
mkImperative b p vp = {
|
mkImperative b p vp = {
|
||||||
s = \\pol,aag =>
|
s = \\pol,aag =>
|
||||||
|
|||||||
@@ -79,18 +79,6 @@ allCommands pgf = Map.fromAscList [
|
|||||||
longname = "empty",
|
longname = "empty",
|
||||||
synopsis = "Takes away all languages and resets all global flags."
|
synopsis = "Takes away all languages and resets all global flags."
|
||||||
}),
|
}),
|
||||||
("ph", emptyCommandInfo {
|
|
||||||
longname = "print_history",
|
|
||||||
synopsis = "print readline history",
|
|
||||||
explanation = "Prints the commands issued during the GF session.\n"++
|
|
||||||
"The result is readable by the eh command.\n"++
|
|
||||||
"example:\n"++
|
|
||||||
" ph | wf foo.hist -- save the history into a file"
|
|
||||||
}),
|
|
||||||
("q", emptyCommandInfo {
|
|
||||||
longname = "quit",
|
|
||||||
synopsis = "exit GF interpreter"
|
|
||||||
}),
|
|
||||||
("gr", emptyCommandInfo {
|
("gr", emptyCommandInfo {
|
||||||
longname = "generate_random",
|
longname = "generate_random",
|
||||||
synopsis = "generates a list of random trees, by default one tree",
|
synopsis = "generates a list of random trees, by default one tree",
|
||||||
@@ -176,6 +164,18 @@ allCommands pgf = Map.fromAscList [
|
|||||||
"source.",
|
"source.",
|
||||||
exec = \opts _ -> return $ fromString $ prGrammar opts,
|
exec = \opts _ -> return $ fromString $ prGrammar opts,
|
||||||
flags = ["cat","lang","printer"]
|
flags = ["cat","lang","printer"]
|
||||||
|
}),
|
||||||
|
("ph", emptyCommandInfo {
|
||||||
|
longname = "print_history",
|
||||||
|
synopsis = "print readline history",
|
||||||
|
explanation = "Prints the commands issued during the GF session.\n"++
|
||||||
|
"The result is readable by the eh command.\n"++
|
||||||
|
"example:\n"++
|
||||||
|
" ph | wf foo.hist -- save the history into a file"
|
||||||
|
}),
|
||||||
|
("q", emptyCommandInfo {
|
||||||
|
longname = "quit",
|
||||||
|
synopsis = "exit GF interpreter"
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
|
|||||||
Reference in New Issue
Block a user