mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 00:22:51 -06:00
examples of dialogue system grammars
This commit is contained in:
27
examples/dialogue/Dialogue.gf
Normal file
27
examples/dialogue/Dialogue.gf
Normal file
@@ -0,0 +1,27 @@
|
||||
abstract Dialogue = {
|
||||
|
||||
cat
|
||||
Move ;
|
||||
Action ;
|
||||
Kind ;
|
||||
Object Kind ;
|
||||
Oper0 ;
|
||||
Oper1 Kind ;
|
||||
Oper2 Kind Kind ;
|
||||
|
||||
fun
|
||||
MRequest : Action -> Move ;
|
||||
MAnswer : Action -> Move ;
|
||||
|
||||
MQuery : Kind -> Move ;
|
||||
|
||||
AOper0 : Oper0 -> Action ;
|
||||
AOper1 : (k : Kind) -> Oper1 k -> Object k -> Action ;
|
||||
AOper2 : (k,m : Kind) -> Oper2 k m -> Object k -> Object m -> Action ;
|
||||
|
||||
OAll : (k : Kind) -> Object k ;
|
||||
OIndef : (k : Kind) -> Object k ;
|
||||
ODef : (k : Kind) -> Object k ;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user