mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
GenIP, GenRP in Extra and any_Quant in ExtraEng
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
module GF.Compile.Rename (
|
module GF.Compile.Rename (
|
||||||
renameSourceTerm,
|
renameSourceTerm,
|
||||||
|
renameSourceJudgement,
|
||||||
renameModule
|
renameModule
|
||||||
) where
|
) where
|
||||||
|
|
||||||
@@ -50,6 +51,14 @@ renameSourceTerm g m t = do
|
|||||||
status <- buildStatus g m mo
|
status <- buildStatus g m mo
|
||||||
renameTerm status [] t
|
renameTerm status [] t
|
||||||
|
|
||||||
|
-- | this gives top-level access to renaming term input in the cj command
|
||||||
|
renameSourceJudgement :: SourceGrammar -> Ident -> (Ident,Info) -> Check (Ident,Info)
|
||||||
|
renameSourceJudgement g m (i,t) = do
|
||||||
|
mo <- checkErr $ lookupModule g m
|
||||||
|
status <- buildStatus g m mo
|
||||||
|
t2 <- renameInfo status m i t
|
||||||
|
return (i,t2)
|
||||||
|
|
||||||
renameModule :: [SourceModule] -> SourceModule -> Check SourceModule
|
renameModule :: [SourceModule] -> SourceModule -> Check SourceModule
|
||||||
renameModule ms (name,mo) = checkIn (text "renaming module" <+> ppIdent name) $ do
|
renameModule ms (name,mo) = checkIn (text "renaming module" <+> ppIdent name) $ do
|
||||||
let js1 = jments mo
|
let js1 = jments mo
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ module GF.Grammar.Parser
|
|||||||
, pModDef
|
, pModDef
|
||||||
, pModHeader
|
, pModHeader
|
||||||
, pExp
|
, pExp
|
||||||
|
, pTopDef
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import GF.Infra.Ident
|
import GF.Infra.Ident
|
||||||
@@ -20,6 +21,7 @@ import GF.Compile.Update (buildAnyTree)
|
|||||||
}
|
}
|
||||||
|
|
||||||
%name pModDef ModDef
|
%name pModDef ModDef
|
||||||
|
%name pTopDef TopDef
|
||||||
%partial pModHeader ModHeader
|
%partial pModHeader ModHeader
|
||||||
%name pExp Exp
|
%name pExp Exp
|
||||||
|
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ see <a href="http://www.grammaticalframework.org/examples/phrasebook/doc-phraseb
|
|||||||
<script type="text/JavaScript">
|
<script type="text/JavaScript">
|
||||||
|
|
||||||
var online_options={
|
var online_options={
|
||||||
grammars_url: "http://www.grammaticalframework.org/grammars/",
|
// grammars_url: "http://www.grammaticalframework.org/grammars/",
|
||||||
//grammars_url: "http://tournesol.cs.chalmers.se:41296/grammars",
|
//grammars_url: "http://tournesol.cs.chalmers.se:41296/grammars",
|
||||||
//grammars_url: "http://localhost:41296/grammars",
|
grammars_url: "http://localhost:41296/grammars/",
|
||||||
grammar_list: ["Phrasebook.pgf"], // leave undefined to get list from server
|
grammar_list: ["Phrasebook.pgf"], // leave undefined to get list from server
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user