forked from GitHub/gf-core
renamed Godis to Prolog ; added Fin
This commit is contained in:
15
examples/dialogue/AgendaFin.gf
Normal file
15
examples/dialogue/AgendaFin.gf
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
--# -path=.:present:prelude
|
||||||
|
|
||||||
|
concrete AgendaFin of Agenda =
|
||||||
|
DialogueFin, WeekdayFin ** open LangFin, ParadigmsFin in {
|
||||||
|
|
||||||
|
lin
|
||||||
|
Day = UseN (regN "päivä") ;
|
||||||
|
Meeting = UseN (regN "kokous") ;
|
||||||
|
Add = dirV3 (regV "lisätä") translative ;
|
||||||
|
Remove = dirV2 (regV "poistaa") ;
|
||||||
|
Interrupt = regV "keskeyttää" ;
|
||||||
|
|
||||||
|
day = UsePN ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
--# -path=.:prelude
|
--# -path=.:prelude
|
||||||
|
|
||||||
concrete AgendaGodis of Agenda =
|
concrete AgendaProlog of Agenda =
|
||||||
DialogueGodis, WeekdayGodis ** open ResGodis, Prelude in {
|
DialogueProlog, WeekdayProlog ** open ResProlog, Prelude in {
|
||||||
|
|
||||||
lin
|
lin
|
||||||
Day = ss "day" ;
|
Day = ss "day" ;
|
||||||
4
examples/dialogue/DialogueFin.gf
Normal file
4
examples/dialogue/DialogueFin.gf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
--# -path=.:present:prelude
|
||||||
|
|
||||||
|
concrete DialogueFin of Dialogue = DialogueI with
|
||||||
|
(Lang = LangFin) ;
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
--# -path=.:prelude
|
--# -path=.:prelude
|
||||||
|
|
||||||
concrete DialogueGodis of Dialogue = open ResGodis, Prelude in {
|
concrete DialogueProlog of Dialogue = open ResProlog, Prelude in {
|
||||||
|
|
||||||
flags lexer=codelit ; unlexer=code ;
|
flags lexer=codelit ; unlexer=code ;
|
||||||
|
|
||||||
@@ -2,13 +2,13 @@ Dialogue system grammar examples.
|
|||||||
|
|
||||||
AR 16/5/2006
|
AR 16/5/2006
|
||||||
|
|
||||||
Files (for X = Eng, Fre, Godis, Swe):
|
Files (for X = Eng, Fin, Fre, Prolog, Swe):
|
||||||
|
|
||||||
Dialogue.gf -- base dialogue grammar
|
Dialogue.gf -- base dialogue grammar
|
||||||
DialogueX.gf -- implementation instance
|
DialogueX.gf -- implementation instance
|
||||||
DialogueI.gf -- implementation functor
|
DialogueI.gf -- implementation functor
|
||||||
|
|
||||||
ResGodis.gf -- help constructs for Prolog terms
|
ResProlog.gf -- help constructs for Prolog terms
|
||||||
|
|
||||||
Weekday.gf -- untility grammar with weekdays
|
Weekday.gf -- untility grammar with weekdays
|
||||||
WeekdayX.gf
|
WeekdayX.gf
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
resource ResGodis = open Prelude in {
|
resource ResProlog = open Prelude in {
|
||||||
|
|
||||||
oper
|
oper
|
||||||
bracket : Str -> Str = \s -> "[" ++ s ++ "]" ;
|
bracket : Str -> Str = \s -> "[" ++ s ++ "]" ;
|
||||||
10
examples/dialogue/WeekdayFin.gf
Normal file
10
examples/dialogue/WeekdayFin.gf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
concrete WeekdayFin of Weekday = open LangFin, ParadigmsFin in {
|
||||||
|
|
||||||
|
lincat
|
||||||
|
WDay = PN ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
Mon = mkPN (regN "maanantai") ;
|
||||||
|
Tue = mkPN (regN "tiistai") ;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
concrete WeekdayGodis of Weekday = open ResGodis, Prelude in {
|
concrete WeekdayProlog of Weekday = open ResProlog, Prelude in {
|
||||||
|
|
||||||
lincat
|
lincat
|
||||||
WDay = SS ;
|
WDay = SS ;
|
||||||
Reference in New Issue
Block a user