1
0
forked from GitHub/gf-core
Files
gf-core/examples/dialogue

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'