summaryrefslogtreecommitdiff
path: root/examples/grammar-terms/GrammarTermsGF.gf
blob: 268be0588551629fc5c3ceaa1481e91eece67df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
concrete GrammarTermsGF of GrammarTerms = 
  open Prelude in {

lincat
  Rule = Str ;
  Cat = Str ;
  ParamType = Str ;
  ParamValue = Str ;
  Language = Str ;
  [Cat] = Str ;
  [ParamType] = Str ;

lin
  RuleFun c cs = cs ++ "->" ++ c ; 
  RuleInherent c ps = "lincat" ++ c ++ ":" ++ "{" ++ ps ++ "}" ; 
  RuleVariable c ps = "lincat" ++ c ++ ":" ++ ps ++ "=>" ++ "Str" ; 

lin
  BaseCat c = c ;
  ConsCat c cs = c ++ "->" ++ cs ;

  BaseParamType c = c ;
  ConsParamType c cs = c ++ "," ++ cs ;

lin 
  CatA = "A" ;
  CatA2 = "A2" ;
  CatAP = "AP" ;
  CatAdA = "AdA" ;
  CatAdN = "AdN" ;
  CatAdV = "AdV" ;
  CatAdv = "Adv" ;
  CatAnt = "Ant" ;
  CatCAdv = "CAdv" ;
  CatCN = "CN" ;
  CatCard = "Card" ;
  CatCl = "Cl" ;
  CatClSlash = "ClSlash" ;
  CatComp = "Comp" ;
  CatConj = "Conj" ;
  CatDet = "Det" ;
  CatDig = "Dig" ;
  CatDigits = "Digits" ;
  CatIAdv = "IAdv" ;
  CatIComp = "IComp" ;
  CatIDet = "IDet" ;
  CatIP = "IP" ;
  CatIQuant = "IQuant" ;
  CatImp = "Imp" ;
  CatImpForm = "ImpForm" ;
  CatInterj = "Interj" ;
  CatListAP = "ListAP" ;
  CatListAdv = "ListAdv" ;
  CatListNP = "ListNP" ;
  CatListRS = "ListRS" ;
  CatListS = "ListS" ;
  CatN = "N" ;
  CatN2 = "N2" ;
  CatN3 = "N3" ;
  CatNP = "NP" ;
  CatNum = "Num" ;
  CatNumeral = "Numeral" ;
  CatOrd = "Ord" ;
  CatPConj = "PConj" ;
  CatPN = "PN" ;
  CatPhr = "Phr" ;
  CatPol = "Pol" ;
  CatPredet = "Predet" ;
  CatPrep = "Prep" ;
  CatPron = "Pron" ;
  CatPunct = "Punct" ;
  CatQCl = "QCl" ;
  CatQS = "QS" ;
  CatQuant = "Quant" ;
  CatRCl = "RCl" ;
  CatRP = "RP" ;
  CatRS = "RS" ;
  CatS = "S" ;
  CatSC = "SC" ;
  CatSSlash = "SSlash" ;
  CatSub100 = "Sub100" ;
  CatSub1000 = "Sub1000" ;
  CatSubj = "Subj" ;
  CatTemp = "Temp" ;
  CatTense = "Tense" ;
  CatText = "Text" ;
  CatUnit = "Unit" ;
  CatUtt = "Utt" ;
  CatV = "V" ;
  CatV2 = "V2" ;
  CatV2A = "V2A" ;
  CatV2Q = "V2Q" ;
  CatV2S = "V2S" ;
  CatV2V = "V2V" ;
  CatV3 = "V3" ;
  CatVA = "VA" ;
  CatVP = "VP" ;
  CatVPSlash = "VPSlash" ;
  CatVQ = "VQ" ;
  CatVS = "VS" ;
  CatVV = "VV" ;
  CatVoc = "Voc" ;

  PTGender = "Gender" ;
  PTNumber = "Number" ;
  PTCase   = "Case" ;
  PTTense  = "Tense" ;

}