summaryrefslogtreecommitdiff
path: root/grammars/video/System/specSystemProlog.gf
diff options
context:
space:
mode:
authoraarne <unknown>2004-09-16 14:47:18 +0000
committeraarne <unknown>2004-09-16 14:47:18 +0000
commitecc132dccfc7617ed413f21ee37539475081f8ec (patch)
treef6fe589eb3881e36b9a94d36aaba49fe4d4087e4 /grammars/video/System/specSystemProlog.gf
parent7769d0fb00a34fb4499017a4aec01a59246b69a1 (diff)
Karin C's example
Diffstat (limited to 'grammars/video/System/specSystemProlog.gf')
-rw-r--r--grammars/video/System/specSystemProlog.gf45
1 files changed, 45 insertions, 0 deletions
diff --git a/grammars/video/System/specSystemProlog.gf b/grammars/video/System/specSystemProlog.gf
new file mode 100644
index 000000000..6ee65c4e3
--- /dev/null
+++ b/grammars/video/System/specSystemProlog.gf
@@ -0,0 +1,45 @@
+-- File name System/specific.Prolog.gf
+
+concrete specSystemProlog of specSystem = genSystemProlog, specificProlog **
+ open prologResource in {
+
+lin
+-- Confirm recording job
+confirmRecJob act = {s = app "confirm" act.s } ;
+
+q_lambdaActionDel dact = {s = ["rec_job_to_delete"]} ;
+
+--- Time in question
+startTimeToStoreQ st = {s = app "start_time_to_store" st.s } ;
+endTimeToStoreQ et = {s = app "stop_time_to_store" et.s } ;
+
+--- Channel and Weekday in question
+channelToStoreQ ch = {s = app "channel_to_store" ch.s } ;
+weekdayToStoreQ wd = {s = app "weekday_to_store" wd.s } ;
+
+--- WHQuestions --- Lambdas
+q_lambdaWeekday wdts = {s = ["weekday_to_store"]} ;
+q_lambdaChannel chts = {s = ["channel_to_store"]} ;
+q_lambdaStartTime stts = {s = ["start_time_to_store"]} ;
+q_lambdaEndTime etts = {s = ["stop_time_to_store"]} ;
+
+
+--- Constructions for ynquestions
+lin
+ynQuST y = {s = y.s} ;
+ynQuET y = {s = y.s} ;
+ynQuCH y = {s = y.s} ;
+ynQuWD y = {s = y.s} ;
+
+--- Props
+startTimeToStoreProp st = {s = st.s } ;
+endTimeToStoreProp et = {s = et.s } ;
+channelToStoreProp chst = {s = chst.s } ;
+weekdayToStoreProp wdts = {s = wdts.s } ;
+
+channelListing chs = {s = chs.s } ;
+channels1 ch = {s = ch.s } ;
+channels2 ch chs = {s = ch.s ++ "," ++ chs.s } ;
+channelListAction ch = {s = ch.s } ;
+channelListActionDMove ch = {s = ch.s } ;
+} \ No newline at end of file