mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-21 18:59:32 -06:00
Added Eclipse contents
This commit is contained in:
21
eclipse/examples/hello/HelloEng.gf
Normal file
21
eclipse/examples/hello/HelloEng.gf
Normal file
@@ -0,0 +1,21 @@
|
||||
concrete HelloEng of HelloAbs = ResEng ** {
|
||||
|
||||
lincat
|
||||
Greeting, Farewell = {s : Str} ;
|
||||
Recipient = {s : Gender => Str} ;
|
||||
|
||||
lin
|
||||
Hello recip = {s = "hello" ++ recip.s ! Masc} ;
|
||||
Goodbye recip = {s = "goodbye" ++ recip.s ! Fem} ;
|
||||
|
||||
World = {s = \\_ => "world"} ;
|
||||
Parent = { s = table {
|
||||
Masc => "dad" ; Fem => "mum"
|
||||
} } ;
|
||||
Friends = superate "friends" ;
|
||||
|
||||
oper
|
||||
superate : Str -> Recipient = \s ->
|
||||
lin Recipient { s = \\_ => "super" ++ s } ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user