mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
Moved punctuation to a separate field, to allow spoken language grammars to omit it. Created top-level spoken language grammars. (all in peacekeeping)
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
--# -path=.:present:prelude
|
||||
|
||||
concrete PeaceCat_Eng of PeaceCat = CatEng ** PeaceCatI with (Cat = CatEng);
|
||||
concrete PeaceCat_Eng of PeaceCat = CatEng ** PeaceCatI with (Lang = LangEng);
|
||||
@@ -1,12 +1,12 @@
|
||||
--# -path=.:..:present:prelude
|
||||
|
||||
concrete PeacePhrases_Eng of PeacePhrases =
|
||||
PeaceCat_Eng ** open ResEng in {
|
||||
PeaceCat_Eng ** open ResEng, PeaceRes in {
|
||||
|
||||
lin
|
||||
Hello = { s = "hello" ++ "." } ;
|
||||
GoodMorning = { s = ["good morning"] ++ "." } ;
|
||||
GoodEvening = { s = ["good evening"] ++ "." } ;
|
||||
WhatIsNamePron p = { s = ["what is"] ++ p.s!Gen ++ "name" ++ "?"; };
|
||||
Hello = stop "hello" ;
|
||||
GoodMorning = stop ["good morning"];
|
||||
GoodEvening = stop ["good evening"] ;
|
||||
WhatIsNamePron p = quest (["what is"] ++ p.s!Gen ++ "name") ;
|
||||
|
||||
}
|
||||
8
examples/peacekeeping/english/PeaceSpoken_Eng.gf
Normal file
8
examples/peacekeeping/english/PeaceSpoken_Eng.gf
Normal file
@@ -0,0 +1,8 @@
|
||||
--# -path=.:..:present:prelude
|
||||
|
||||
concrete PeaceSpoken_Eng of PeaceSpoken =
|
||||
Peace_Eng ** {
|
||||
|
||||
flags startcat = PhraseSpoken ;
|
||||
|
||||
}
|
||||
@@ -5,6 +5,6 @@ concrete Peace_Eng of Peace =
|
||||
PeaceLexExt_Eng, PeacePhrases_Eng
|
||||
** {
|
||||
|
||||
flags startcat = Phr ;
|
||||
flags startcat = PhraseWritten ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user