From d9f7697f7a9f8fb44fa2ead3eecf6ca3c3cad19f Mon Sep 17 00:00:00 2001 From: "john.j.camilleri" Date: Mon, 17 Oct 2011 16:01:07 +0000 Subject: Added Eclipse contents --- eclipse/examples/hello/HelloEng.gf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 eclipse/examples/hello/HelloEng.gf (limited to 'eclipse/examples/hello/HelloEng.gf') diff --git a/eclipse/examples/hello/HelloEng.gf b/eclipse/examples/hello/HelloEng.gf new file mode 100644 index 000000000..d67843ef0 --- /dev/null +++ b/eclipse/examples/hello/HelloEng.gf @@ -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 } ; + +} -- cgit v1.2.3