grammar for messages started

This commit is contained in:
aarne
2010-06-21 16:50:40 +00:00
parent 7fa1963cc4
commit 24c5730840
3 changed files with 173 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
abstract Messages =
Words - [IMale, IFemale, YouFamMale, YouFamFemale, YouPolMale, YouPolFemale],
Greetings ** {
flags startcat = Message ;
cat
Message ;
Heading ;
Body ;
Ending ;
Statement ;
Recipient ;
Sender ;
Title ;
Role ;
fun
Msg : Heading -> Body -> Ending -> Message ;
HHello : Recipient -> Heading ;
HDear : Recipient -> Heading ;
BOne : Statement -> Body ;
BMore : Statement -> Body -> Body ;
ERegards : Sender -> Ending ;
SSentence : Sentence -> Statement ;
SQuestion : Question -> Statement ;
SGreeting : Greeting -> Statement ;
RName : Name -> Recipient ;
RTitle : Title -> Name -> Recipient ;
SName : Name -> Sender ;
TMr : Title ;
TMs : Title ;
RI : Role ; -- generic: Gender and Politeness from context
RYou : Role ;
PRole : Role -> Person ;
}