mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-01 15:22:50 -06:00
texts and idioms
This commit is contained in:
@@ -6,16 +6,20 @@ abstract Cat = Tense ** {
|
||||
|
||||
--2 Top-level units
|
||||
|
||||
-- Constructed in [Phrase Phrase.html].
|
||||
-- Constructed in [Text Text.html].
|
||||
|
||||
Text ; -- text consisting of several phrases
|
||||
|
||||
-- Constructed in [Phrase Phrase.html].
|
||||
|
||||
Phr ; -- phrase in a text e.g. "But be quiet my darling."
|
||||
Utt ; -- sentence, question, word... e.g. "be quiet"
|
||||
Voc ; -- vocative or "please" e.g. "my darling"
|
||||
|
||||
--2 Sentences and clauses
|
||||
|
||||
-- Constructed in [Sentence Sentence.html].
|
||||
-- Constructed in [Sentence Sentence.html], and also in
|
||||
-- [Idiom Idiom.html].
|
||||
|
||||
S ; -- declarative sentence e.g. "she lived here"
|
||||
QS ; -- question e.g. "where did she live"
|
||||
|
||||
13
lib/resource-1.0/abstract/Idiom.gf
Normal file
13
lib/resource-1.0/abstract/Idiom.gf
Normal file
@@ -0,0 +1,13 @@
|
||||
--1 Idiomatic expressions
|
||||
|
||||
abstract Idiom = Cat ** {
|
||||
|
||||
-- This module defines constructions that are formed in fixed ways,
|
||||
-- often different even in closely related languages.
|
||||
|
||||
fun
|
||||
ExistNP : NP -> Cl ; -- there is a house
|
||||
ImpersVP : VP -> Cl ; -- it rains
|
||||
ProgrVP : VP -> VP ; -- sleeping
|
||||
|
||||
}
|
||||
@@ -15,6 +15,8 @@ abstract Lang =
|
||||
Relative,
|
||||
Conjunction,
|
||||
Phrase,
|
||||
Text,
|
||||
Structural,
|
||||
Idiom,
|
||||
Lexicon
|
||||
** {} ;
|
||||
|
||||
11
lib/resource-1.0/abstract/Text.gf
Normal file
11
lib/resource-1.0/abstract/Text.gf
Normal file
@@ -0,0 +1,11 @@
|
||||
--1 Texts
|
||||
|
||||
abstract Text = Cat ** {
|
||||
|
||||
fun
|
||||
TEmpty : Text ;
|
||||
TFullStop : Phr -> Text -> Text ;
|
||||
TQuestMark : Phr -> Text -> Text ;
|
||||
TExclMark : Phr -> Text -> Text ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user