Karin C's example

This commit is contained in:
aarne committed 2004-09-16 14:47:18 +00:00
1 parent 7769d0fb00
commit ecc132dccf
55 files changed
+2212 -4

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
-- File name system.Prolog.gf
concrete genSystemProlog of genSystem = generalProlog **
open prologResource in {
pattern
greet = "greet" ;
quit = "quit" ;
lin
ask q = {s = app "ask" q.s} ;
lin
---Language
change_language = {s = "change_language"} ;
language_alt = {s = "[" ++ "language" ++ "(" ++ "X" ++ ")" ++ "]" } ; -- hack!
---Actions
pattern
actionQ = "action" ;
lin
whQuestion f = {s = "X" ++ "^" ++ app f.s "X"} ;
altQuestion a1 a2 = {s = a1.s ++ a2.s};
--- Issue
issue i = {s = app "issue" i.s} ;
pattern
nil = "[]" ;
}