mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42: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:
11
examples/peacekeeping/PeaceRes.gf
Normal file
11
examples/peacekeeping/PeaceRes.gf
Normal file
@@ -0,0 +1,11 @@
|
||||
resource PeaceRes = {
|
||||
|
||||
param Punct = FullStop | QuestMark | ExclMark ;
|
||||
|
||||
oper
|
||||
stop, quest, excl : Str -> { s : Str; p : Punct } ;
|
||||
stop x = { s = x; p = FullStop } ;
|
||||
quest x = { s = x; p = QuestMark } ;
|
||||
excl x = { s = x; p = ExclMark } ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user