forked from GitHub/gf-core
peacekeeping: add a module with phrases which are very different in different languages, e.g. greetings. The english and swedish implementations do not yet use the resource grammars, and the finnish is empty.
This commit is contained in:
12
examples/peacekeeping/english/PeacePhrases_Eng.gf
Normal file
12
examples/peacekeeping/english/PeacePhrases_Eng.gf
Normal file
@@ -0,0 +1,12 @@
|
||||
--# -path=.:..:present:prelude
|
||||
|
||||
concrete PeacePhrases_Eng of PeacePhrases =
|
||||
PeaceCat_Eng ** open ResEng in {
|
||||
|
||||
lin
|
||||
Hello = { s = "hello" ++ "." } ;
|
||||
GoodMorning = { s = ["good morning"] ++ "." } ;
|
||||
GoodEvening = { s = ["good evening"] ++ "." } ;
|
||||
WhatIsNamePron p = { s = ["what is"] ++ p.s!Gen ++ "name" ++ "?"; };
|
||||
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
--# -path=.:..:present:prelude
|
||||
|
||||
concrete Peace_Eng of Peace = PeaceSyntax_Eng, PeaceLexCommon_Eng, PeaceLexExt_Eng ** {}
|
||||
concrete Peace_Eng of Peace =
|
||||
PeaceSyntax_Eng, PeaceLexCommon_Eng,
|
||||
PeaceLexExt_Eng, PeacePhrases_Eng
|
||||
** {}
|
||||
|
||||
Reference in New Issue
Block a user