mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
renamed Godis to Prolog ; added Fin
This commit is contained in:
34
examples/dialogue/DialogueProlog.gf
Normal file
34
examples/dialogue/DialogueProlog.gf
Normal file
@@ -0,0 +1,34 @@
|
||||
--# -path=.:prelude
|
||||
|
||||
concrete DialogueProlog of Dialogue = open ResProlog, Prelude in {
|
||||
|
||||
flags lexer=codelit ; unlexer=code ;
|
||||
|
||||
lincat
|
||||
Move = SS ;
|
||||
Action = SS ;
|
||||
Kind = SS ;
|
||||
Object = SS ;
|
||||
Oper0 = SS ;
|
||||
Oper1 = SS ;
|
||||
Oper2 = SS ;
|
||||
|
||||
lin
|
||||
MRequest a = a ;
|
||||
MAnswer a = a ; --- ??
|
||||
|
||||
MQuery k = ss (bracket (app1 "query" k.s)) ; ---
|
||||
|
||||
AOper0 op = ss (bracket (request op.s)) ;
|
||||
AOper1 k op x = ss (req_ans op.s k.s x.s) ;
|
||||
AOper2 k m op x y =
|
||||
ss (bracket (request op.s ++ "," ++
|
||||
answer (app1 k.s x.s) ++ "," ++ answer (app1 m.s y.s))) ;
|
||||
|
||||
OAll = apps "all" ;
|
||||
OIndef = apps "indef" ;
|
||||
ODef = apps "def" ;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user