mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 05:29:30 -06:00
44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="generator" CONTENT="http://txt2tags.sf.net">
|
|
<TITLE> Text: Texts</TITLE>
|
|
</HEAD><BODY BGCOLOR="white" TEXT="black">
|
|
<P ALIGN="center"><CENTER><H1> Text: Texts</H1>
|
|
<FONT SIZE="4">
|
|
<I>Last update: 2006-06-15 09:19:39 CEST</I><BR>
|
|
</FONT></CENTER>
|
|
|
|
<P></P>
|
|
<HR NOSHADE SIZE=1>
|
|
<P></P>
|
|
<P></P>
|
|
<HR NOSHADE SIZE=1>
|
|
<P></P>
|
|
<P>
|
|
Produced by
|
|
gfdoc - a rudimentary GF document generator.
|
|
(c) Aarne Ranta (<A HREF="mailto:aarne@cs.chalmers.se">aarne@cs.chalmers.se</A>) 2002 under GNU GPL.
|
|
</P>
|
|
<P>
|
|
Texts are built from an empty text by adding <CODE>Phr</CODE>ases,
|
|
using as constructors the punctuation marks <I>.</I>, <I>?</I>, and <I>!</I>.
|
|
Any punctuation mark can be attached to any kind of phrase.
|
|
</P>
|
|
<PRE>
|
|
abstract Text = Common ** {
|
|
|
|
fun
|
|
TEmpty : Text ; --
|
|
TFullStop : Phr -> Text -> Text ; -- John walks. ...
|
|
TQuestMark : Phr -> Text -> Text ; -- Are you OK? ...
|
|
TExclMark : Phr -> Text -> Text ; -- John walks! ...
|
|
|
|
}
|
|
</PRE>
|
|
<P></P>
|
|
|
|
<!-- html code generated by txt2tags 2.3 (http://txt2tags.sf.net) -->
|
|
<!-- cmdline: txt2tags -thtml -\-toc abstract/Text.txt -->
|
|
</BODY></HTML>
|