mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 13:29:32 -06:00
16 lines
465 B
Plaintext
16 lines
465 B
Plaintext
--1 Text: Texts
|
|
|
|
-- Texts are built from an empty text by adding $Phr$ases,
|
|
-- using as constructors the punctuation marks ".", "?", and "!".
|
|
-- Any punctuation mark can be attached to any kind of phrase.
|
|
|
|
abstract Text = Common ** {
|
|
|
|
fun
|
|
TEmpty : Text ; --
|
|
TFullStop : Phr -> Text -> Text ; -- John walks. ...
|
|
TQuestMark : Phr -> Text -> Text ; -- Are they here? ...
|
|
TExclMark : Phr -> Text -> Text ; -- Let's go! ...
|
|
|
|
}
|