forked from GitHub/gf-core
changed names of resource-1.3; added a note on homepage on release
This commit is contained in:
10
old-examples/tutorial/hello/Hello.gf
Normal file
10
old-examples/tutorial/hello/Hello.gf
Normal file
@@ -0,0 +1,10 @@
|
||||
abstract Hello = {
|
||||
|
||||
cat Greeting ; Recipient ;
|
||||
|
||||
flags startcat = Greeting ;
|
||||
|
||||
fun
|
||||
Hello : Recipient -> Greeting ;
|
||||
World, Mum, Friends : Recipient ;
|
||||
}
|
||||
10
old-examples/tutorial/hello/HelloEng.gf
Normal file
10
old-examples/tutorial/hello/HelloEng.gf
Normal 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"} ;
|
||||
}
|
||||
10
old-examples/tutorial/hello/HelloFin.gf
Normal file
10
old-examples/tutorial/hello/HelloFin.gf
Normal 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"} ;
|
||||
}
|
||||
10
old-examples/tutorial/hello/HelloIta.gf
Normal file
10
old-examples/tutorial/hello/HelloIta.gf
Normal 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"} ;
|
||||
}
|
||||
4
old-examples/tutorial/hello/hello.gfs
Normal file
4
old-examples/tutorial/hello/hello.gfs
Normal file
@@ -0,0 +1,4 @@
|
||||
import HelloEng.gf
|
||||
import HelloFin.gf
|
||||
import HelloIta.gf
|
||||
linearize -multi Hello World
|
||||
Reference in New Issue
Block a user