1
0
forked from GitHub/gf-core

moved tutorial examples to GF/examples

This commit is contained in:
aarne
2007-08-16 16:18:54 +00:00
parent 5f0e8a16ec
commit 6234e536f6
16 changed files with 9 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
abstract Hello = {
cat Greeting ; Recipient ;
flags startcat = Greeting ;
fun
Hello : Recipient -> Greeting ;
World, Mum, Friends : Recipient ;
}

View File

@@ -0,0 +1,10 @@
concrete HelloEng of Hello = {
lincat Greeting, Recipient = {s : Str} ;
lin
Hello rec = {s = "hello" ++ rec.s} ;
World = {s = "world"} ;
Mum = {s = "mum"} ;
Friends = {s = "friends"} ;
}

View File

@@ -0,0 +1,10 @@
concrete HelloFin of Hello = {
lincat Greeting, Recipient = {s : Str} ;
lin
Hello rec = {s = "terve" ++ rec.s} ;
World = {s = "maailma"} ;
Mum = {s = "äiti"} ;
Friends = {s = "ystävät"} ;
}

View File

@@ -0,0 +1,10 @@
concrete HelloIta of Hello = {
lincat Greeting, Recipient = {s : Str} ;
lin
Hello rec = {s = "ciao" ++ rec.s} ;
World = {s = "mondo"} ;
Mum = {s = "mamma"} ;
Friends = {s = "amici"} ;
}