forked from GitHub/gf-core
added abstract to paths in Parse* to make them find Constructions and Documentation
This commit is contained in:
@@ -8,8 +8,8 @@
|
|||||||
abstract Lang =
|
abstract Lang =
|
||||||
Grammar,
|
Grammar,
|
||||||
Lexicon
|
Lexicon
|
||||||
,Construction --- can be compiled here, but not in concretes, as they call Syntax and Grammar
|
-- ,Construction --- could be compiled here, but not in concretes, as they call Syntax and Grammar
|
||||||
,Documentation
|
-- ,Documentation
|
||||||
** {
|
** {
|
||||||
flags startcat=Phr ;
|
flags startcat=Phr ;
|
||||||
} ;
|
} ;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
--# -path=alltenses:../english
|
--# -path=alltenses:../english:../abstract
|
||||||
concrete ParseBul of ParseEngAbs =
|
concrete ParseBul of ParseEngAbs =
|
||||||
TenseX - [IAdv, CAdv],
|
TenseX - [IAdv, CAdv],
|
||||||
CatBul,
|
CatBul,
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
--# -path=.:../english
|
--# -path=.:../english:../abstract
|
||||||
|
|
||||||
concrete ParseChi of ParseEngAbs =
|
concrete ParseChi of ParseEngAbs =
|
||||||
TenseChi,
|
TenseChi,
|
||||||
--- CatChi,
|
--- CatChi,
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
--# -path=.:../abstract
|
||||||
|
|
||||||
concrete ParseEng of ParseEngAbs =
|
concrete ParseEng of ParseEngAbs =
|
||||||
TenseX - [Pol, PNeg, PPos],
|
TenseX - [Pol, PNeg, PPos],
|
||||||
CatEng,
|
CatEng,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
--# -path=.:../english/:../romance:alltenses
|
--# -path=.:../english/:../abstract:../romance:alltenses
|
||||||
concrete ParseFre of ParseEngAbs =
|
concrete ParseFre of ParseEngAbs =
|
||||||
TenseFre,
|
TenseFre,
|
||||||
-- CatFre,
|
-- CatFre,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
--# -path=alltenses:.:../english
|
--# -path=alltenses:.:../english:../abstract
|
||||||
concrete ParseGer of ParseEngAbs =
|
concrete ParseGer of ParseEngAbs =
|
||||||
TenseGer,
|
TenseGer,
|
||||||
NounGer - [PPartNP],
|
NounGer - [PPartNP],
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
--# -path=.:../english/:../scandinavian:alltenses
|
--# -path=.:../english/:../scandinavian:alltenses:../abstract
|
||||||
concrete ParseSwe of ParseEngAbs =
|
concrete ParseSwe of ParseEngAbs =
|
||||||
TenseSwe,
|
TenseSwe,
|
||||||
NounSwe - [PPartNP],
|
NounSwe - [PPartNP],
|
||||||
@@ -40,20 +40,21 @@ lin
|
|||||||
-}
|
-}
|
||||||
|
|
||||||
CompoundCN num noun cn = {
|
CompoundCN num noun cn = {
|
||||||
s = \\n,d,c => noun.s ! num.n ! Indef ! Nom ++ BIND ++ cn.s ! n ! d ! c ;
|
s = \\n,d,c => num.s ! cn.g ++ noun.co ++ BIND ++ cn.s ! n ! d ! c ;
|
||||||
g = cn.g ;
|
g = cn.g ;
|
||||||
isMod = False
|
isMod = False
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
DashCN noun1 noun2 = {
|
DashCN noun1 noun2 = {
|
||||||
s = \\n,d,c => noun1.s ! Sg ! Indef ! Nom ++ BIND ++ noun2.s ! n ! d ! c ;
|
s = \\n,d,c => noun1.co ++ BIND ++ noun2.s ! n ! d ! c ;
|
||||||
g = noun2.g ;
|
g = noun2.g ;
|
||||||
isMod = False ;
|
co = noun1.co ++ BIND ++ noun2.co ---- add s if not already there
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
GerundN v = {
|
GerundN v = {
|
||||||
s = \\n,d,c => v.s ! VI (VPtPres n d c) ;
|
s = \\n,d,c => v.s ! VI (VPtPres n d c) ;
|
||||||
g = Neutr
|
g = Neutr ;
|
||||||
|
co = v.s ! VI (VPtPres Sg Indef Nom) ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
GerundAP v = {
|
GerundAP v = {
|
||||||
|
|||||||
Reference in New Issue
Block a user