forked from GitHub/gf-core
started ConstructX to add lock fields
This commit is contained in:
@@ -20,24 +20,16 @@ abstract Common = {
|
|||||||
|
|
||||||
-- Constructed in [Text Text.html]: $Text$.
|
-- Constructed in [Text Text.html]: $Text$.
|
||||||
|
|
||||||
Text ; -- text consisting of several phrases
|
Text ; -- text consisting of several phrases e.g. "He is here. Why?"
|
||||||
Phr ; -- phrase in a text e.g. "But come here my darling."
|
Phr ; -- phrase in a text e.g. "But get out please."
|
||||||
|
|
||||||
-- Constructed in [Phrase Phrase.html]: $Phr$ and
|
-- Constructed in [Phrase Phrase.html]: $Phr$ and
|
||||||
|
|
||||||
Utt ; -- sentence, question, word... e.g. "be quiet"
|
Utt ; -- sentence, question, word... e.g. "be quiet"
|
||||||
Voc ; -- vocative or "please" e.g. "my darling"
|
Voc ; -- vocative or "please" e.g. "my darling"
|
||||||
PConj ; -- phrase-beginning conj. e.g. "therefore"
|
PConj ; -- phrase-beginning conj. e.g. "therefore"
|
||||||
|
|
||||||
SC ; -- embedded sentence or question e.g. "that it rains"
|
SC ; -- embedded sentence or question e.g. "that it rains"
|
||||||
|
|
||||||
SC ;
|
|
||||||
Adv ;
|
|
||||||
AdV ;
|
|
||||||
AdA ;
|
|
||||||
AdS ;
|
|
||||||
AdN ;
|
|
||||||
|
|
||||||
--2 Adverbs
|
--2 Adverbs
|
||||||
|
|
||||||
-- Constructed in [Adverb Adverb.html].
|
-- Constructed in [Adverb Adverb.html].
|
||||||
@@ -50,9 +42,11 @@ abstract Common = {
|
|||||||
IAdv ; -- interrogative adverb e.g. "why"
|
IAdv ; -- interrogative adverb e.g. "why"
|
||||||
CAdv ; -- comparative adverb e.g. "more"
|
CAdv ; -- comparative adverb e.g. "more"
|
||||||
|
|
||||||
Pol ;
|
--2 Tense, polarity, and anteriority
|
||||||
Tense ;
|
|
||||||
Ant ;
|
Tense ; -- tense: present, past, future, conditional
|
||||||
|
Pol ; -- polarity: positive, negative
|
||||||
|
Ant ; -- anteriority: simultaneous, anterior
|
||||||
|
|
||||||
fun
|
fun
|
||||||
PPos, PNeg : Pol ; -- I sleep/don't sleep
|
PPos, PNeg : Pol ; -- I sleep/don't sleep
|
||||||
|
|||||||
18
lib/resource-1.0/common/ConstructX.gf
Normal file
18
lib/resource-1.0/common/ConstructX.gf
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
resource ConstructX = open CommonX in {
|
||||||
|
|
||||||
|
oper
|
||||||
|
mkText : Str -> Text = \s -> {s = s ; lock_Text = <>} ;
|
||||||
|
mkPhr : Str -> Phr = \s -> {s = s ; lock_Phr = <>} ;
|
||||||
|
Utt = {s : Str} ;
|
||||||
|
Voc = {s : Str} ;
|
||||||
|
SC = {s : Str} ;
|
||||||
|
Adv = {s : Str} ;
|
||||||
|
AdV = {s : Str} ;
|
||||||
|
AdA = {s : Str} ;
|
||||||
|
AdS = {s : Str} ;
|
||||||
|
AdN = {s : Str} ;
|
||||||
|
IAdv = {s : Str} ;
|
||||||
|
CAdv = {s : Str} ;
|
||||||
|
PConj = {s : Str} ;
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user