blob: 2a6eaef013a704f15743af8abf4464102d4d1c3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
Dialogue system grammar examples.
AR 16/5/2006
Files (for X = Eng, Fre, Godis, Swe):
Dialogue.gf -- base dialogue grammar
DialogueX.gf -- implementation instance
DialogueI.gf -- implementation functor
ResGodis.gf -- help constructs for Prolog terms
Weekday.gf -- untility grammar with weekdays
WeekdayX.gf
Agenda.gf -- application grammar for agenda
AgendaX.gf
To build a new application for domain Dom, you need
Dom.gf -- introduce fun's in Kind, Object, Oper0, Oper1, Oper2
DomX.gf -- concrete syntax of the new fun's for language X
To test:
- 'make present' in lib/resource-1.0
- 'gf AgendaEng.gf' in current dir, followed by 'gr -cat=Move | l -all'
- or the same thing with other languages
- for Nuance grammar, do 'pg -printer=gsl -startcat=Move'
- to generate a corpus, do 'gt -cat=Move -depth=4 | pt -transform=typecheck | l -all'
|